Part Object : Data Property |
Visual Basic |
---|
Public Property Data( _ Optional ByVal ReturnType As ReturnTypeConstants = msgString _ ) As Variant |
Value | Description |
---|---|
msgByteArray | Return the value as a Byte array. |
msgString | Return the value as a String. |
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.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):