Click or drag to resize

IJsMap.ToReadOnlyDictionary<TKey, TVal> Method

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

Namespace:  DotNetBrowser.Js.Collections
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.9
Syntax
C#
IReadOnlyDictionary<TKey, TVal> ToReadOnlyDictionary<TKey, TVal>()

Type Parameters

TKey

[Missing <typeparam name="TKey"/> documentation for "M:DotNetBrowser.Js.Collections.IJsMap.ToReadOnlyDictionary``2"]

TVal

[Missing <typeparam name="TVal"/> documentation for "M:DotNetBrowser.Js.Collections.IJsMap.ToReadOnlyDictionary``2"]

Return Value

Type: IReadOnlyDictionary<TKey, TVal>
A IReadOnlyDictionary<TKey, TValue> that contains key-value pairs from the IJsMap.
Exceptions
ExceptionCondition
ObjectDisposedException The IJsMap has already been disposed.
ArgumentException The elements in this IJsMap cannot be converted to the specified type.
Remarks
Proxy objects are mapped to the corresponding injected .NET objects.
See Also