Visual Basic: MAPI Controls
Specifies the full path name of the currently indexed attachment. This property is not available at design time. It is read-only unless MsgIndex is set to -1.
object.AttachmentPathName [ = value ]
The AttachmentPathName property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|value||A string expression specifying the full path name of the currently indexed attachment.|
If you attempt to send a message with an empty string for a path name, an error results. Attachments in the read buffer are deleted when a subsequent fetch occurs. Attachments in the compose buffer need to be manually deleted. The value of AttachmentPathName depends on the currently indexed message, as selected by the AttachmentIndex property.