Class PstAttachmentList
PST file-specific implementation of IAttachmentList.
Implements
Inherited Members
Namespace: DRIT.Mail.Pst.API
Assembly: DRIT.Mail.dll
Syntax
public class PstAttachmentList : IAttachmentList
Constructors
View SourcePstAttachmentList(PstMapiEmailMessage)
Wraps the attachment list of the given PST email message.
Declaration
public PstAttachmentList(PstMapiEmailMessage pstMapiEmailMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| PstMapiEmailMessage | pstMapiEmailMessage | The underlying PST MAPI email message. |
Methods
View SourceAddFromFile(string)
Adds a file from disk as an attachment to the message.
Declaration
public 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
public Attachment Create()
Returns
| Type | Description |
|---|---|
| Attachment | The newly created Attachment instance. |
GetByLongFileName(string)
Retrieves an attachment by its long file name.
Declaration
public 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
public Attachment GetByNumber(int number)
Parameters
| Type | Name | Description |
|---|---|---|
| int | number | The zero-based attachment number. |
Returns
| Type | Description |
|---|---|
| Attachment | The matching Attachment, or null if not found. |