Searches the entire sorted MimeAttachmentList for an MimeAttachment element using the default comparer and returns the zero-based index of the element.
The zero-based index of value in the sorted MimeAttachmentList, if value is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of Count.
Please refer to BinarySearch for details.
Exception Type | Condition |
---|---|
InvalidOperationException | Neither value nor the elements of the MimeAttachmentList implement the IComparable interface. |
MimeAttachmentList Class | SmtPop Namespace