DeletePart Method  
 

Delete the specified message part in the current message.

Syntax

object.DeletePart( [MessagePart] )

Parameters

MessagePart
An optional integer value which specifies the message part to remove from a multipart message.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The DeletePart method deletes the specified message part in the current message. If the optional message part is not specified, then the current message part is deleted. This method cannot be used to delete the main body of the message. Use the ClearMessage method to clear the contents of the complete message.

See Also

AttachFile Method, ClearMessage Method, CreatePart Method