IJsWindowProxyHandler<TValue> Interface

The operations of a WindowProxy exotic object (https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-windowproxy-exotic-object), created by IJsAdapter<TValue>.CreateWindowProxy. Its internal methods are the ones of the specification: the indexed properties are the WindowProxy objects of the child navigables, the other properties are the properties of the global object of IJsWindowProxyHandler<TValue>.Window (same origin) or the cross-origin properties.

public interface IJsWindowProxyHandler<TValue> : IJsCrossOriginObjectHandler<TValue> where TValue : class

Type parameters

TValue
The type of the JavaScript values of the engine.
Implements

Properties

NameDescription
ChildCountGets the number of document-tree child navigables of the document of the window.
WindowGets the global object of the window of the WindowProxy ([[Window]]): the active window of its browsing context.

ChildCount

Gets the number of document-tree child navigables of the document of the window.

int ChildCount { get; }

Property value

int

Window

Gets the global object of the window of the WindowProxy ([[Window]]): the active window of its browsing context.

TValue Window { get; }

Property value

TValue

Methods

NameDescription
GetChild(int)Returns the WindowProxy of the document-tree child navigable at index, or null.

GetChild(int)

Returns the WindowProxy of the document-tree child navigable at index, or null.

TValue? GetChild(int index)

Parameters

index int

Returns

TValue?