Interface IAttachmentList
Represents the collection of attachments on a MAPI message, with factory and lookup operations.
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public interface IAttachmentList
Methods
View SourceAddFromFile(string)
Adds a file from disk as an attachment.
Declaration
void AddFromFile(string fileFullName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileFullName | The full path of the file to attach. |
Create()
Creates a new, empty Attachment and adds it to the collection.
Declaration
Attachment Create()
Returns
| Type | Description |
|---|---|
| Attachment | The newly created Attachment instance. |
GetByLongFileName(string)
Retrieves an attachment by its long file name.
Declaration
Attachment GetByLongFileName(string longFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | longFileName | The long file name to search for. |
Returns
| Type | Description |
|---|---|
| Attachment | The matching Attachment, or null if not found. |
GetByNumber(int)
Retrieves an attachment by its ordinal number.
Declaration
Attachment GetByNumber(int number)
Parameters
| Type | Name | Description |
|---|---|---|
| int | number | The zero-based attachment number. |
Returns
| Type | Description |
|---|---|
| Attachment | The matching Attachment. |