Simple Mail and Post Office Protocol for .Net (SmtPop)

MimeAttachmentList.Item Property

Gets or sets the MimeAttachment element at the specified index.

public virtual MimeAttachment this[
   int index
] {get; set;}

Parameters

index
The zero-based index of the MimeAttachment element to get or set.

Property Value

The MimeAttachment element at the specified index.

Implements

IMimeAttachmentList.Item

Remarks

Please refer to Item for details.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

NotSupportedException

The property is set and the MimeAttachmentList is read-only.

-or-

The property is set, the MimeAttachmentList already contains the specified element at a different index, and the MimeAttachmentList ensures that all elements are unique.

See Also

MimeAttachmentList Class | SmtPop Namespace