Table of Contents

Interface IJsArray

Namespace
DotNetBrowser.Js.Collections
Assembly
DotNetBrowser.dll

A JavaScript array.

public interface IJsArray : IJsObject, IAutoDisposable
Inherited Members
Extension Methods

Remarks

An array object can be passed between .NET and JavaScript as a method argument or a return value.The object lifetime is bound to the lifetime of the frame this object belongs to. When the owner frame is unloaded, all the bound JavaScript objects are automatically disposed.

Properties

Count

Gets the number of elements contained in the IJsArray.

this[uint]

Gets or sets the array element at the specified index. If there is an existing element at the specified index, it will be replaced. If the index exceeds the array size, the array will be extended and the elements between the last inserted item and the index will be set to null.

Methods

ToReadOnlyList()

Copies the contents of the IJsArray to a new IReadOnlyList<T>.

ToReadOnlyList<T>()

Copies the contents of the IJsArray to a new IReadOnlyList<T>.