Class MapiAttachment

MapiAttachment class

public class MapiAttachment : MapiPropertyContainer

Properties

NameDescription
BinaryData { get; set; }Gets or sets binary attachment data.
virtual CodePage { get; }Gets the code page.
Content { get; }Gets the content.
DisplayName { get; set; }Gets the display name of the ole object in an attachment.
Extension { get; }Gets a filename extension that indicates the document type of an attachment.
FileName { get; }Gets an attachment’s base filename and extension, excluding path.
virtual IsInline { get; }Gets a value indicating whether the attachment is inline or regular. If inline returns true, otherwise false.
IsReference { get; }Gets a value indicating whether the attachment is stored as a reference rather than being embedded in the email.
virtual ItemId { get; }The item id, uses with a server
LongFileName { get; }Gets an attachment’s long filename and extension, excluding path.
MimeTag { get; }Gets formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment.
NamedProperties { get; }Gets the named properties of message.
ObjectData { get; }Gets an attachment object typically accessed through the OLE IStorage interface.
virtual Properties { get; }Gets the collection of properties.
PropertyStream { get; }Gets the property stream.
SubStorages { get; }Gets the sub storages.

Methods

NameDescription
override GetProperty(PropertyDescriptor)Gets MAPI property by property descriptor.
GetPropertyBoolean(long)Gets the value of the property specified by tag as Boolean type.
GetPropertyBytes(long)Gets the string value of the property specified by tag.
GetPropertyDateTime(long)Gets the value of the property specified by tag as DateTime type.
GetPropertyInt32(long)Gets the int32 value of the property specified by tag.
GetPropertyLong(long)Gets the value of the property specified by tag as Long (int64) type.
GetPropertyShort(long)Gets the value of the property specified by tag as Short type.
GetPropertyString(long)Gets the string value of the property specified by tag.
GetPropertyString(long, int)Gets the string value of the property specified by tag.
IsStoreUnicodeOk()Determines if string properties are Unicode encoded or not.
RemoveProperty(long)Provides correctly removing property from all collections.
Save(Stream)Save attachment content.
Save(string)Save attachment content.
override SetProperty(MapiProperty)Sets the property.
override SetProperty(PropertyDescriptor, object)Sets MAPI property.
TryGetPropertyData(long)Try to get the property data with specified tag key.
TryGetPropertyDateTime(long, ref DateTime)Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.
TryGetPropertyInt32(long, ref int)Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.
TryGetPropertyLong(long, ref long)Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.
TryGetPropertyString(long)Try to get a property data as string with specified tag.
TryGetPropertyString(long, int)Try to get a property data as string with specified tag and code page.
TryGetPropertyString(long, ref string)Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
TryGetPropertyString(long, ref string, int)Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.

See Also