Attachment Object Members

Outlook Developer Reference

Represents a document or link to a document contained in an Outlook item.

Methods

  Name Description
Bb176633.methods(en-us,office.12).gif Delete Deletes an object from the collection.
Bb176633.methods(en-us,office.12).gif SaveAsFile Saves the attachment to the specified path.

Properties

  Name Description
Bb176633.properties(en-us,office.12).gif Application Returns an Application object that represents the parent Outlook application for the object. Read-only.
Bb176633.properties(en-us,office.12).gif BlockLevel Returns an OlAttachmentBlockLevel constant that specifies if there is any restriction on the attachment based on its file extension. Read-only.
Bb176633.properties(en-us,office.12).gif Class Returns an OlObjectClass constant indicating the object's class. Read-only.
Bb176633.properties(en-us,office.12).gif DisplayName Returns or sets a String representing the name, which does not need to be the actual file name, displayed below the icon representing the embedded attachment. Read/write.
Bb176633.properties(en-us,office.12).gif FileName Returns a String representing the file name of the attachment. Read-only.
Bb176633.properties(en-us,office.12).gif Index Returns a Long indicating the position of the object within the collection. Read-only.
Bb176633.properties(en-us,office.12).gif Parent Returns the parent Object of the specified object. Read-only.
Bb176633.properties(en-us,office.12).gif PathName Returns a String representing the full path to the linked attached file. Read-only.
Bb176633.properties(en-us,office.12).gif Position Returns or sets a Long indicating the position of the attachment within the body of the item. Read/write.
Bb176633.properties(en-us,office.12).gif PropertyAccessor Returns a PropertyAccessor object that supports creating, getting, setting, and deleting properties of the parent Attachment object. Read-only.
Bb176633.properties(en-us,office.12).gif Session Returns the NameSpace object for the current session. Read-only.
Bb176633.properties(en-us,office.12).gif Size Returns a Long indicating the size (in bytes) of the attachment. Read-only.
Bb176633.properties(en-us,office.12).gif Type Returns an OlAttachmentType constant indicating the type of the specified object. Read-only.