• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MapiAttachment

Represents an attachment object.

Inheritance
object
AbstractReadOnlyMapiItem
AbstractMapiItem
MapiAttachment
PstAttachment
Inherited Members
AbstractMapiItem.ObjectType
AbstractMapiItem.RecordKey
AbstractMapiItem.SearchKey
AbstractMapiItem.DisplayName
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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 Source

MapiAttachment()

Initializes a new instance of the MapiAttachment class.

Declaration
public MapiAttachment()
Remarks

Reference: MS-OXCMSG 2.2.2 Attachment Object Properties

Properties

View Source

AttachAdditionalInformation

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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 nameValueDescription
attInvisibleInHtml0x00000001The Attachment object is not available to be rendered in HTML.
attInvisibleInRtf0x00000002The Attachment object is not available to be rendered in RTF.
attRenderedInBody0x00000004The 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

View Source

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

View Source

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

View Source

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 nameValueDescription
afNone0x00000000The attachment has just been created.
afByValue0x00000001The AttachDataBinary property contains the attachment data.
afByReference0x00000002The AttachLongPathname property contains a fully qualified path identifying the attachment To recipients with access to a common file server.
afByReferenceOnly0x00000004 The AttachLongPathname property contains a fully qualified path identifying the attachment.
afEmbeddedMessage0x00000005 The attachment is an embedded message.
afStorage0x00000006The AttachDataObject property contains data in an application-specific format.

MS-OXCMSG 2.2.2.9 PidTagAttachMethod Property

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX