MessageNumberCollectionIndexOf Method
Returns the zero-based index of the first occurrence of the specified ordinal message number in the collection.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public int IndexOf(
	int messageNumber
)

Parameters

messageNumber
Type: SystemInt32
The ordinal message number to be searched for.

Return Value

Type: Int32
A zero-based index of the first occurrence of the specified ordinal message number 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 message numbers in IMAP start from 1).
See Also