GetEmailCount Method

Get total count of emails in specified mail box and sort emails in current mail box.

[Syntax]
C++: HRESULT GetEmailCountEx( BSTR MailBox, BSTR Sort, long Ascent, long* pVal )
Visual Basic: GetEmailCountEx( MailBox As String, Sort As String, Ascent As Long ) As long
C#: int GetEmailCountEx( string MailBox, string Sort, int Ascent )

Parameters

MailBox

Mailbox name.

Sort

Sort type, it can be "date", "from", "to", "subject" and "size".

Ascent

If this parameter is greater than zero, then the sort order is ascending, otherwise the sort order is descending.

Return Value

If this method succeeds, the return value is the total count of emails in this mailbox.


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.