DeleteAll Method
DeleteAll Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Deletes all Message objects in the collection along with all associated files on the file system.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
[Visual Basic]Sub DeleteAll
()
[C++]HRESULT DeleteAll ();
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The DeleteAll method deletes all Message objects in the collection. In addition, it deletes the file from which each Message object was derived.
Example
[Visual Basic]
Dim iDropDir as New CDO.DropDirectory Dim iMsgs as CDO.IMessages Dim iMsg as CDO.Message
Set iMsgs = iDropDir.GetMessages
For Each iMsg in iMsgs ' process the message object Next iMsg
' delete these when done. The associated files in the ' directory are deleted as well iMsgs.DeleteAll
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.