Header(Parser Options, Byte, Int 32, Byte, Boolean) 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#
protected Header(
ParserOptions options,
byte[] field,
int fieldNameLength,
byte[] value,
bool invalid
)Parameters
- options ParserOptions
- The parser options used.
- field Byte
- The raw header field.
- fieldNameLength Int32
- The length of the field name (not including trailing whitespace).
- value Byte
- The raw value of the header.
- invalid Boolean
- if the header field is invalid; otherwise, .
Remarks
Creates a new message or entity header with the specified raw values.
This constructor is used by the TryParse methods.