This documentation is archived and is not being maintained.

Visual Basic: MAPI Controls

Visual Studio 6.0

AttachmentName Property

See Also    Example    Applies To

Specifies the name of the currently indexed attachment file. This property is not available at design time. It is read-only unless MsgIndex is set to -1.


object.AttachmentName [ = value ]

The AttachmentName 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 name of the currently indexed attachment file.


The file name specified is the file name seen by the recipients of the currently indexed message. If AttachmentName is an empty string, the file name from the AttachmentPathName property is used.

If the attachment is an OLE object, AttachmentName contains the class name of the object, for example, "Microsoft Excel Worksheet."

Attachments in the read buffer are deleted when a subsequent fetch occurs. The value of AttachmentName depends on the currently indexed message as selected by the AttachmentIndex property.

Data Type