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

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
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