Click or drag to resize
MimeKit

Header Constructor (String, String)

Initialize a new instance of the Header class.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public Header(
	string field,
	string value
)

Parameters

field
Type: SystemString
The name of the header field.
value
Type: SystemString
The value of the header.
Exceptions
ExceptionCondition
ArgumentNullException

field is null.

-or-

value is null.

ArgumentException The field contains illegal characters.
Remarks
Creates a new message or entity header for the specified field and value pair with the UTF-8 encoding.
See Also