
## MapiAttachment class



The MapiAttachment type exposes the following members:
## Properties
| Name | Description |
| :- | :- |
|properties|Gets the collection of properties.|
|code_page|Gets the code page.|
|item_id|The item id, uses with a server|
|is_inline|Gets a value indicating whether the attachment is inline or regular.<br/>            If inline returns true, otherwise false.|
|is_reference|Gets a value indicating whether the attachment is stored as a reference <br/>            rather than being embedded in the email.|
|extension|Gets a filename extension that indicates the document type of an attachment.|
|property_stream|Gets the property stream.|
|sub_storages|Gets the sub storages.|
|file_name|Gets an attachment's base filename and extension, excluding path.|
|long_file_name|Gets an attachment's long filename and extension, excluding path.|
|display_name|Gets the display name of the ole object in an attachment.|
|mime_tag|Gets formatting information about a <br/>            Multipurpose Internet Mail Extensions (MIME) attachment.|
|binary_data|Gets or sets binary attachment data.|
|content|Gets the content.|
|object_data|Gets an attachment object typically accessed <br/>            through the OLE IStorage interface.|
|named_properties|Gets the named properties of message.|
## Methods
| Name | Description |
| :- | :- |
|set_property(value)|  |
|set_property(pd, value)|  |
|try_get_property_string(tag, codepage)|  |
|try_get_property_string(tag)|  |
|try_get_property_string(tag, value, codepage)|  |
|try_get_property_string(tag, value)|  |
|get_property_string(tag, codepage)|  |
|get_property_string(tag)|  |
|save(filename)|  |
|save(stream)|  |
|get_property(pd)|  |
|try_get_property_data(tag)|  |
|get_property_bytes(tag)|  |
|get_property_int32(tag)|  |
|get_property_long(tag)|  |
|get_property_short(tag)|  |
|get_property_boolean(tag)|  |
|get_property_date_time(key)|  |
|is_store_unicode_ok()|  |
|try_get_property_date_time(tag, value)|  |
|try_get_property_long(tag, value)|  |
|try_get_property_int32(tag, value)|  |
|remove_property(tag)|  |

### See Also

* namespace [aspose.email.mapi](/email/python-net/aspose.email.mapi/)
* assembly [Aspose.Email](/email/python-net/)

