EncodingDetectionContext Class

The context of the detection of the encoding of a document (see EncodingDetector.Detect).

public sealed class EncodingDetectionContext

Properties

NameDescription
IsCompleteGets whether the bytes are the whole document. It is false for a document that is parsed as its bytes arrive: the bytes may end in the middle of a character.
UrlGets the URL of the document, or null when it has none (HtmlParserOptions.Url is not set).

Gets whether the bytes are the whole document. It is false for a document that is parsed as its bytes arrive: the bytes may end in the middle of a character.

public bool IsComplete { get; }

Property value

bool

Gets the URL of the document, or null when it has none (HtmlParserOptions.Url is not set).

public string? Url { get; }

Property value

string?