Header(Header Id, String) Constructor
Initialize a new instance of the Header class.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Header(
HeaderId id,
string value
)Parameters
Remarks
Creates a new message or entity header for the specified field and
value pair with the UTF-8 encoding.
Exceptions
| ArgumentNullException | value is . |
| ArgumentOutOfRangeException | id is not a valid HeaderId. |