AttachmentPathName Property
Collapse the table of content
Expand the table of content

Visual Basic: MAPI Controls

Visual Studio 6.0

AttachmentPathName Property

See Also    Example    Applies To

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:

Part Description
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.

Data Type


© 2016 Microsoft