Getting the message count

Top  Previous  Next

Upon establishing a connection to a IMAP server you can retrieve a count of messages in the account mailbox by invoking the GetMessageCount method.

 

Example

 

[C#]

int count = myImap.GetMessageCount();

 

 

[Visual Basic]

Dim count As Int32 = myImap.GetMessageCount()