AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.4.0-beta.495" />

 BrowsingContext

A simple and lightweight browsing context.
public IDocument Active { get; set; }

Gets or sets the currently active document.

public IDocument Creator { get; }

Gets the document that created the current context, if any. The creator is the active document of the parent at the time of creation.

public IWindow Current { get; }

Gets the current window proxy.

public IEnumerable<object> OriginalServices { get; }

Gets the original services for the given browsing context.

public IBrowsingContext Parent { get; }

Gets the parent of the current context, if any. If a parent is available, then the current context contains only embedded documents.

public Sandboxes Security { get; }

Gets the sandboxing flag of the context.

public IHistory SessionHistory { get; }

Gets the session history of the given browsing context, if any.

public BrowsingContext(IConfiguration configuration = null)

Creates a new browsing context with the given configuration, or the default configuration, if no configuration is provided.

public static IBrowsingContext New(IConfiguration configuration = null)

Creates a new browsing context with the given configuration, or the default configuration, if no configuration is provided.

public static IBrowsingContext NewFrom<TService>(TService instance)

Creates a new browsing context from the given service.

public IBrowsingContext CreateChild(string name, Sandboxes security)

Creates a new named browsing context as child of the given parent.

public IBrowsingContext FindChild(string name)

Finds a named browsing context.

public T GetService<T>()

Gets an instance of the given service.

public IEnumerable<T> GetServices<T>()

Gets all registered instances of the given service.