Table of Contents

Interface IJsMap

Namespace
DotNetBrowser.Js.Collections
Assembly
DotNetBrowser.dll

A JavaScript map.

public interface IJsMap : IJsObject, IAutoDisposable
Inherited Members
Extension Methods

Remarks

A map 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 key-value mappings in this IJsMap.

this[object]

Gets or sets the element with the specified key. If this map contains a value associated with the key, it will be replaced.

Methods

Clear()

Removes all items from this IJsMap. Does nothing if the map is empty.

ContainsKey(object)

Determines whether the IJsMap contains an element with the specified key.

Remove(object)

Removes the element with the specified key from the IJsMap.

ToReadOnlyDictionary()

Copies the contents of the IJsMap to a new IReadOnlyDictionary<TKey, TValue>.

ToReadOnlyDictionary<TKey, TVal>()

Copies the contents of the IJsMap to a new IReadOnlyDictionary<TKey, TValue>.