Part Object : File Property |
Visual Basic |
---|
Public Property File As String |
When a message containing an attachment is received, the filename is stripped of path information and the AttachmentDirectory property is prepended to the received name to produce this property. When composing, you may set the File property to the fully qualified name of the file to be attached.
File data is also available as a decoded string or encoded byte array in the Data property.
If the Part uses JIS encoding, and the system is Japanese, then the file is saved using Shift-JIS encoding.