Class MapiAttachment
Represents an attachment object.
Inherited Members
Namespace: DRIT.Mail.Mapi
Assembly: DRIT.Mail.dll
Syntax
public class MapiAttachment : AbstractMapiItem
Remarks
Reference: MS-OXCMSG 2.2.2 Attachment Object Properties
Constructors
View SourceMapiAttachment()
Initializes a new instance of the MapiAttachment class.
Declaration
public MapiAttachment()
Remarks
Reference: MS-OXCMSG 2.2.2 Attachment Object Properties
Properties
View SourceAttachAdditionalInformation
Gets or sets a value that MUST be set to an empty string if the AttachEncoding property is unset..
Declaration
public byte[] AttachAdditionalInformation { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
If the attachment is in MacBinary format, this property is set to "{0x2A,86,48,86,F7,14,03,0B,01}"; otherwise, it is unset. This property is used to indicate that the attachment content, which is the value of the PidTagAttachDataBinary property (section 2.2.2.7), MUST be encoded in the MacBinary format, as specified in [MS-OXCMAIL].
MS-OXCMSG 2.2.2.21 PidTagAttachAdditionalInformation Property
AttachContentBase
Gets or sets the base of a relative URI.
Declaration
public string AttachContentBase { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.577 PidTagAttachContentBase
AttachContentId
Gets or sets a content identifier unique to the Message object that matches a corresponding "cid:" URI schema reference in the HTML body of the Message object.
Declaration
public string AttachContentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.578 PidTagAttachContentId
AttachContentLocation
Gets or sets a relative or full URI that matches a corresponding reference in the HTML body of a Message object.
Declaration
public string AttachContentLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.579 PidTagAttachContentLocation
AttachDataBinary
Gets or sets the contents of the file to be attached..
Declaration
public byte[] AttachDataBinary { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
MS-OXCMSG 2.2.2.7 PidTagAttachDataBinary Property
AttachEncoding
Gets or sets encoding information about the Attachment object.
Declaration
public byte[] AttachEncoding { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
If the attachment is in MacBinary format, this property is set to "{0x2A,86,48,86,F7,14,03,0B,01}"; otherwise, it is unset. This property is used to indicate that the attachment content, which is the value of the PidTagAttachDataBinary property (section 2.2.2.7), MUST be encoded in the MacBinary format, as specified in [MS-OXCMAIL].
MS-OXCMSG 2.2.2.20 PidTagAttachEncoding Property
AttachExtension
Gets or sets a file name extension that indicates the document type of an attachment.
Declaration
public string AttachExtension { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.12 PidTagAttachExtension Property
AttachFilename
Gets or sets the 8.3 name of the value of the AttachLongFilename property.
Declaration
public string AttachFilename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.11 PidTagAttachFilename Property
AttachFlags
Gets or sets a value that indicates which body formats might reference this attachment when rendering data.
Declaration
public int? AttachFlags { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
| Flag name | Value | Description |
|---|---|---|
| attInvisibleInHtml | 0x00000001 | The Attachment object is not available to be rendered in HTML. |
| attInvisibleInRtf | 0x00000002 | The Attachment object is not available to be rendered in RTF. |
| attRenderedInBody | 0x00000004 | The Attachment object is referenced and rendered within the HTML body of the associated Message object. More details are specified in the BodyHtml property. |
MS-OXCMSG 2.2.2.18 PidTagAttachFlags Property
AttachLongFilename
Gets or sets the the full file name and extension of the Attachment object.
Declaration
public string AttachLongFilename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.10 PidTagAttachLongFilename Property
AttachLongPathname
Gets or sets the fully qualified path and file name with extension.
Declaration
public string AttachLongPathname { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.13 PidTagAttachLongPathname Property
AttachMethod
Gets or sets a value that represents the way the contents of an attachment are accessed.
Declaration
public int? AttachMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
This property is set to one of the following values.
| Flag name | Value | Description |
|---|---|---|
| afNone | 0x00000000 | The attachment has just been created. |
| afByValue | 0x00000001 | The AttachDataBinary property contains the attachment data. |
| afByReference | 0x00000002 | The AttachLongPathname property contains a fully qualified path identifying the attachment To recipients with access to a common file server. |
| afByReferenceOnly | 0x00000004 | The AttachLongPathname property contains a fully qualified path identifying the attachment. |
| afEmbeddedMessage | 0x00000005 | The attachment is an embedded message. |
| afStorage | 0x00000006 | The AttachDataObject property contains data in an application-specific format. |
MS-OXCMSG 2.2.2.9 PidTagAttachMethod Property
AttachMimeTag
Gets or sets a content-type MIME header
Declaration
public string AttachMimeTag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.593 PidTagAttachMimeTag
AttachNumber
Gets or sets a number that identifies the Attachment object within its Message object.
Declaration
public int? AttachNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
MS-OXCMSG 2.2.2.6 PidTagAttachNumber Property
AttachPathname
Gets or sets the 8.3 name of the value of the AttachLongPathname property.
Declaration
public string AttachPathname { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.14 PidTagAttachPathname Property
AttachPayloadClass
Gets or sets the class name of an object that can display the contents of the message.
Declaration
public string AttachPayloadClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.596 PidTagAttachPayloadClass
AttachPayloadProviderGuidString
Gets or sets the GUID of the software component that can display the contents of the message.
Declaration
public string AttachPayloadProviderGuidString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.597 PidTagAttachPayloadProviderGuidString
AttachRendering
Gets or sets a Windows Metafile Format (WMF) metafile as specified in [MS-WMF] for the Attachment object.
Declaration
public byte[] AttachRendering { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
MS-OXCMSG 2.2.2.17 PidTagAttachRendering Property
AttachSize
Gets or sets the size in bytes of the attachment object.
Declaration
public int? AttachSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
MS-OXCMSG 2.2.2.5 PidTagAttachSize Property
AttachTag
Gets or sets the identifier information for the application that supplied the Attachment object's data.
Declaration
public byte[] AttachTag { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
MS-OXCMSG 2.2.2.15 PidTagAttachTag Property
AttachTransportName
Gets or sets the the name of an attachment file, modified so that it can be correlated with TNEF messages, as specified in [MSOXTNEF].
Declaration
public string AttachTransportName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.19 PidTagAttachTransportName Property
AttachmentContactPhoto
Gets or sets the attachment contact photo value.
Declaration
public bool? AttachmentContactPhoto { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Remarks
Reference: MS-OXCMSG 2.2.2 Attachment Object Properties
AttachmentFlags
Gets or sets a value that indicates special handling for this Attachment object.
Declaration
public int? AttachmentFlags { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
This property MUST be set to 0x00000000 unless overridden by other protocols that extend the Message and Attachment Object Protocol as noted in section 1.4.
2.2.2.23 PidTagAttachmentFlags Property
AttachmentHidden
Gets or sets whether the attachment object is hidden from the end user.
Declaration
public bool? AttachmentHidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Remarks
2.2.2.24 PidTagAttachmentHidden Property
AttachmentLinkId
Gets or sets a value which is the type of Message object to which this attachment is linked.
Declaration
public int? AttachmentLinkId { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
This property MUST be set to 0x00000000 unless overridden by other protocols that extend the Message and Attachment Object Protocol as noted in section 1.4. 2.2.2.22 PidTagAttachmentLinkId Property
AttachmentMacContentType
Gets or sets the Content-Type of the Mac attachment.
Declaration
public string AttachmentMacContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.368 PidNameAttachmentMacContentType
AttachmentMacInfo
Gets or sets the headers and resource fork data associated with the Mac attachment.
Declaration
public string AttachmentMacInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXPROPS 2.369 PidNameAttachmentMacInfo
EmbeddedMessage
Gets the embedded message when AttachMethod is afEmbeddedMessage (5). Null for regular file attachments.
Declaration
public MapiMessage EmbeddedMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| MapiMessage |
Remarks
Reference: MS-OXCMSG 2.2.2 Attachment Object Properties
IsEmbeddedMessage
Gets a value indicating whether this attachment is an embedded message.
Declaration
public bool IsEmbeddedMessage { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Reference: MS-OXCMSG 2.2.2 Attachment Object Properties
RenderingPosition
Gets or sets an offset, in rendered characters, to use when rendering an attachment within the main message text.
Declaration
public int? RenderingPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
2.2.2.16 PidTagRenderingPosition Property
TextAttachmentCharset
Gets or sets the the character set of messages for messages with a text body.
Declaration
public string TextAttachmentCharset { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
MS-OXCMSG 2.2.2.19 PidTagAttachTransportName Property