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

Class PstAttachmentList

PST file-specific implementation of IAttachmentList.

Inheritance
object
PstAttachmentList
Implements
IAttachmentList
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Pst.API
Assembly: DRIT.Mail.dll
Syntax
public class PstAttachmentList : IAttachmentList

Constructors

View Source

PstAttachmentList(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 Source

AddFromFile(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.

View Source

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.

View Source

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.

View Source

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.

Implements

IAttachmentList
  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX