Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Deletes all Message objects in the collection along with all associated files on the file system.
[Visual Basic] Sub DeleteAll() [C++] HRESULT DeleteAll(); [IDL] HRESULT DeleteAll();
The DeleteAll method deletes all Message objects in the collection. In addition, each respective file from which each Message object was derived is also deleted.
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