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

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 Source

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

View Source

Create()

Creates a new, empty Attachment and adds it to the collection.

Declaration
Attachment Create()
Returns
Type Description
Attachment

The newly created Attachment instance.

View Source

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.

View Source

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.

  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX