AttachmentPathName Property
TOC
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.

Syntax

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.

Remarks

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

String

Show:
© 2016 Microsoft