Dart Smtp, Pop, Imap Controls
Data Property
Specifies the return value as a String or a Byte array. Defaults to msgString.
Description
Message data contained in the Part Object.
Property type
Read-write property
Syntax
Visual Basic
Public Property Data( _
   Optional ByVal ReturnType As ReturnTypeConstants = msgString _
) As Variant
Parameters
ReturnType
ValueDescription
msgByteArrayReturn the value as a Byte array.
msgStringReturn the value as a String.
Specifies the return value as a String or a Byte array. Defaults to msgString.
Return Value
String or Byte array.
Remarks

This property contains data associated with the part.

If the part references an attached file, and the AttachmentDirectory property is "" (empty string), this property contains the file contents when the message is decoded. Otherwise, the property is empty.

If the part contains text, this property is used to set or read the text. When this property is set, ReturnType is ignored. The Data and File properties are mutually exclusive.

If the inline part is a file, the file data is available in either this property or the File property. The filename is available in the Name property.

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

See Also

Part Object  | Part Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic