SetHeader Method

Set the value for the specified header in the current message part.

Syntax

object.SetHeader( HeaderField, HeaderValue )

Remarks

The SetHeader method is used to set the value for a specific header in the current message part.

HeaderField
A string which specifies the name of the header field to create or modify. If the header field does not exist, then it will be created. If the header field does exist, the value will be overwritten.
HeaderValue
A string which specifies the value of the specified header field.

See Also

Part Property, GetFirstHeader Method, GetHeader Method, GetNextHeader Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.