Gets value for header specified by
CopyC#
name
.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public string GetHeaderValue(
	string name
)
Visual Basic
Public Function GetHeaderValue ( _
	name As String _
) As String
Visual C++
public:
String^ GetHeaderValue(
	String^ name
)

Parameters

name
Type: System..::..String
The name of the header to retrive.

Return Value

The value of the header or
CopyC#
null
if header is not found.

Remarks

If more than one header with specified
CopyC#
name
exists for this
CopyC#
MimeMessage
then the value of the last header added to this
CopyC#
MimeMessage
with specified
CopyC#
name
will be returned. To get all headers see the GetHeaders method.

See Also