UidCollectionIndexOf Method
Returns the zero-based index of the first occurrence of the specified UID in the collection.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public int IndexOf(
	long uid
)

Parameters

uid
Type: SystemInt64
The UID to be searched for.

Return Value

Type: Int32
A zero-based index of the first occurrence of the specified UID in the collection, or -1 if not found.
Remarks
The collection is zero-based (the first item has the position of 0) but the item values are 1-based (because UIDs in IMAP start from 1).
See Also