HtmlSource Class

HtmlSource class

Where the HTML comes from. A path’s directory becomes an allowed file root; string and stream bases are absolute http(s) or file URIs, or about:blank.

public sealed class HtmlSource

Methods

NameDescription
static FromFile(string)A local file, resolved to a full path now.
static FromStream(Stream, string)Bytes read now from the current position; the stream is left open.
static FromString(string, string)Decoded markup with its base URI.
static FromUrl(string)An absolute http(s) URL without credentials, fetched through the resource policy.

See Also