Platform SDK: Exchange 2000 Server

DeleteAll Method

[This is preliminary documentation and subject to change.]

Removes all BodyPart objects from the collection.

[Visual Basic]
Sub DeleteAll()
[C++]
HRESULT DeleteAll();
[IDL]
HRESULT DeleteAll();

Example

Dim iMsg as New CDO.Message
Dim iBp as IBodyPart
Dim iBps as IBodyParts
Set iBps = iMsg.BodyPart.BodyParts
Set iBp = iBps.Add
... '  add more body parts
iBps.DeleteAll