Delete all emails from specified mailbox.
[Syntax] C++: HRESULT ClearMailBox( BSTR MailBox, long* pVal ) Visual Basic: ClearMailBox( MailBox As String ) As long C#: long ClearMailBox( string MailBox )
Parameters
MailBox
Mailbox to be cleared.
Return Value
If this method succeeds, the return value is zero. If it fails, the return value is non-zero.
Usage Example
[Visual Basic]Dim oStore As ANPOPLib.MSGSTORE Dim mailBox As String mailBox = "Inbox" Set oStore = new ANPOPLib.MSGSTORE If oStore.CreateMailBox( mailBox ) = 0 Then MsgBox "clear mailbox succeeded" Else MsgBox "clear mailbox failed" End If
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.