DeleteHeader Method  
 

Delete a header field from the current message part.

Syntax

object.DeleteHeader( HeaderField )

Parameters

HeaderField
A string that specifies the name of the header field to be deleted from the current message part.

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 DeleteHeader method deletes the specified header field value from the current message part.

See Also

ClearMesage Method, GetHeader Method, SetHeader Method