MailClient.GetMailCount Method


Retrieves total emails count on current selected folder from POP3/IMAP4/MS Exchange Server.

[Visual Basic]
Public Function GetMailCount( _
) As  Integer

Public Async Function GetMailCountAsync( _
) As Task (Of Integer)
[C#]
public int GetMailCount(
);

public async Task<int> GetMailCountAsync(
    );
[C++]
public: int GetMailCount(
);
[JScript]
public function GetMailCount( 
) : int ;

Return Value

A integer value presenting the total emails count on current selected folder. This method only returns the total emails count without downloading other information. To retrieve emails from mail server, please use GetMailInfos method.

See Also

User Authentication and SSL/TLS Connection
MailInfo Class
Mail Class

Online Tutorials

Read Email and Parse Email in C# - Tutorial
Read Email and Parse Email in VB.NET - Tutorial
Read Email and Parse Email C++/CLI - Tutorial

Read Email over SSL/TLS Connection in C# - Tutorial
Read Email from Gmail Account in C# - Tutorial
Read Email from Yahoo Account in C# - Tutorial
Read Email from Hotmail Account in C# - Tutorial

Read Email over SSL/TLS Connection in VB.NET - Tutorial
Read Email from Gmail Account in VB.NET - Tutorial
Read Email from Yahoo Account in VB.NET - Tutorial
Read Email from Hotmail Account in VB.NET - Tutorial

Read Email over SSL/TLS Connection C++/CLI - Tutorial
Read Email from Gmail Account in C++/CLI - Tutorial
Read Email from Yahoo Account in C++/CLI - Tutorial
Read Email from Hotmail Account in C++/CLI - Tutorial