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
- this[object]
Gets or sets the element with the specified
key
. If this map contains a value associated with thekey
, it will be replaced.
Methods
- 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>.