Class Attachment
Provides attachment functionality.
Inherited Members
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public class Attachment
Constructors
View SourceAttachment(MapiAttachment)
Initializes a new instance of the Attachment class.
Declaration
public Attachment(MapiAttachment mapiAttachment)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiAttachment | mapiAttachment | The mapi attachment used by the operation. |
Properties
View SourceDataBinary
Gets or sets the contents of the file to be attached..
Declaration
public byte[] DataBinary { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Remarks
MS-OXCMSG 2.2.2.7 PidTagAttachDataBinary Property
Extension
Gets or sets the extension value.
Declaration
public string Extension { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Filename
Gets or sets the filename value.
Declaration
public string Filename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Flags
Gets or sets the flags value.
Declaration
public AttachFlagValues? Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| AttachFlagValues? |
LongFilename
Gets or sets the long filename value.
Declaration
public string LongFilename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Method
Gets or sets the method value.
Declaration
public AttachMethodValue? Method { get; set; }
Property Value
| Type | Description |
|---|---|
| AttachMethodValue? |
Number
Gets or sets a number that identifies the Attachment object within its Message object.
Declaration
public int? Number { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
MS-OXCMSG 2.2.2.6 PidTagAttachNumber Property
Size
Gets or sets the size in bytes of the attachment object.
Declaration
public int? Size { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
MS-OXCMSG 2.2.2.5 PidTagAttachSize Property
Methods
View SourceFromFile(string)
Processes the from file data.
Declaration
public void FromFile(string fileFullName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileFullName | The file full name used by the operation. |
Save(string)
Saves the data to the specified destination.
Declaration
public void Save(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The file or path to process. |
SetMIMETag()
Sets the mimetag.
Declaration
public void SetMIMETag()
SetStorageTag()
Sets the storage tag.
Declaration
public void SetStorageTag()
SetTNEFTag()
Sets the tneftag.
Declaration
public void SetTNEFTag()