Sdílet prostřednictvím


DeleteAll Method (IBodyParts)

Topic Last Modified: 2006-06-13

Removes all BodyPart objects from the collection.

Applies To

IBodyParts Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Sub DeleteAll()
HRESULT DeleteAll
();

Return Value

Returns S_OK if successful, or an error value otherwise.

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