Catalyst Internet Mail .NET

InternetMail.DeleteHeader Method (Int32, String)

Delete a header field from the specified message part.

[Visual Basic]
Overloads Public Function DeleteHeader( _
   ByVal messagePart As Integer, _
   ByVal headerName As String _
) As Boolean
[C#]
public bool DeleteHeader(
   int messagePart,
   string headerName
);

Parameters

messagePart
An integer which specifies the message part.
headerName
A string which specifies the header field to delete from the specified message part.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

A message part of zero specifies the main message part which contains the standard headers such as To, From and Subject. The number of message parts in the current message is returned by the PartCount property.

See Also

InternetMail Class | SocketTools Namespace | InternetMail.DeleteHeader Overload List