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
- this[uint]
Gets or sets the array element at the specified
index
. If there is an existing element at the specifiedindex
, it will be replaced. If theindex
exceeds the array size, the array will be extended and the elements between the last inserted item and theindex
will be set tonull
.
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>.