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

MailAddressList.IndexOf Method 

Returns the zero-based index of the first occurrence of a MailAddress in the MailAddressList.

public virtual int IndexOf(
   MailAddress item
);

Parameters

item
The MailAddress to locate in the MailAddressList.

Return Value

The zero-based index of the first occurrence of item in the entire MailAddressList, if found; otherwise, -1.

See Also

MailAddressList Class | SmtPop Namespace