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

MimeAttachmentList.RemoveRange Method 

Removes the specified range of elements from the MimeAttachmentList.

public virtual void RemoveRange(
   int index,
   int count
);

Parameters

index
The zero-based starting index of the range of elements to remove.
count
The number of elements to remove.

Remarks

Please refer to RemoveRange for details.

Exceptions

Exception Type Condition
ArgumentException index and count do not denote a valid range of elements in the MimeAttachmentList.
ArgumentOutOfRangeException

index is less than zero.

-or-

count is less than zero.

NotSupportedException

The MimeAttachmentList is read-only.

-or-

The MimeAttachmentList has a fixed size.

See Also

MimeAttachmentList Class | SmtPop Namespace