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

IMimeAttachmentList.IndexOf Method 

Returns the zero-based index of the first occurrence of the specified MimeAttachment in the IMimeAttachmentList.

int IndexOf(
   MimeAttachment value
);

Parameters

value
The MimeAttachment object to locate in the IMimeAttachmentList. This argument can be a null reference.

Return Value

The zero-based index of the first occurrence of value in the IMimeAttachmentList, if found; otherwise, -1.

Remarks

Please refer to IndexOf for details.

See Also

IMimeAttachmentList Interface | SmtPop Namespace