Click or drag to resize
MimeKit

Header(String, String) Constructor

Initialize a new instance of the Header class.

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

Parameters

field  String
The name of the header field.
value  String
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