MapiAttachment Class

Represents the attachment in the E-mail message.
Inheritance Hierarchy

Namespace:  Aspose.Email.Mapi
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public class MapiAttachment : MapiPropertyContainer

The MapiAttachment type exposes the following members.

Properties
  NameDescription
Public propertyBinaryData
Gets or sets binary attachment data.
Public propertyCodePage
Gets the code page.
(Inherited from MapiPropertyContainer.)
Public propertyContent
Gets the content.
Public propertyDisplayName
Gets the display name of the ole object in an attachment.
Public propertyExtension
Gets a filename extension that indicates the document type of an attachment.
Public propertyFileName
Gets an attachment's base filename and extension, excluding path.
Public propertyItemId
The item id, uses with a server
Public propertyLongFileName
Gets an attachment's long filename and extension, excluding path.
Public propertyMimeTag
Gets formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment.
Public propertyNamedProperties
Gets the named properties of message.
Public propertyObjectData
Gets an attachment object typically accessed through the OLE IStorage interface.
Public propertyProperties
Gets the collection of properties.
(Inherited from MapiPropertyContainer.)
Public propertyPropertyStream
Gets the property stream.
Public propertySubStorages
Gets the sub storages.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetProperty
Gets MAPI property by property descriptor.
(Overrides MapiPropertyContainerGetProperty(PropertyDescriptor).)
Public methodGetPropertyBoolean
Gets the value of the property specified by tag as Boolean type.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyBytes
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyDateTime
Gets the value of the property specified by tag as DateTime type.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyInt32
Gets the int32 value of the property specified by tag.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyLong
Gets the value of the property specified by tag as Long (int64) type.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyShort
Gets the value of the property specified by tag as Short type.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyString(Int64)
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.)
Public methodGetPropertyString(Int64, Int32)
Gets the string value of the property specified by tag.
(Inherited from MapiPropertyContainer.)
Public methodGetType (Inherited from Object.)
Public methodIsStoreUnicodeOk
Determines if string properties are Unicode encoded or not.
(Inherited from MapiPropertyContainer.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveProperty
Provides correctly removing property from all collections.
Public methodSave(Stream)
Save attachment content.
Public methodSave(String)
Save attachment content.
Public methodSetProperty(MapiProperty)
Sets the property.
(Overrides MapiPropertyContainerSetProperty(MapiProperty).)
Public methodSetProperty(PropertyDescriptor, Object)
Sets MAPI property.
(Overrides MapiPropertyContainerSetProperty(PropertyDescriptor, Object).)
Public methodToString (Inherited from Object.)
Public methodTryGetPropertyData
Try to get the property data with specified tag key.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyDateTime
Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyInt32
Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyLong
Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyString(Int64)
Try to get a property data as string with specified tag.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyString(Int64, Int32)
Try to get a property data as string with specified tag and code page.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyString(Int64, String)
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.)
Public methodTryGetPropertyString(Int64, String, Int32)
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
(Inherited from MapiPropertyContainer.)
Fields
  NameDescription
Protected fieldnamedPropertyMappingStorage
The named property mapping storage.
See Also