Header(String, String) Constructor

Initialize a new instance of the Header class.

Definition

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

Parameters

field  String
The name of the header field.
value  String
The value of the header.

Remarks

Creates a new message or entity header for the specified field and value pair with the UTF-8 encoding.

Exceptions

ArgumentNullException

field is .

-or-

value is .

ArgumentException The field contains illegal characters.

See Also