Method CreateJsMap
- Namespace
- DotNetBrowser.Frames
- Assembly
- DotNetBrowser.dll
CreateJsMap<TKey, TValue>(IDictionary<TKey, TValue>)
Creates a new IJsMap and copies the contents of the IDictionary<TKey, TValue> to it.
IJsMap CreateJsMap<TKey, TValue>(IDictionary<TKey, TValue> dictionary)
Parameters
dictionary
IDictionary<TKey, TValue>The dictionary to copy elements from.
Returns
Type Parameters
TKey
TValue
Remarks
The values are converted to their JavaScript representations during copying.
Exceptions
- ObjectDisposedException
The IFrame object has already been disposed.
CreateJsMap<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>)
Creates a new IJsMap and copies the contents of the IReadOnlyDictionary<TKey, TValue> to it.
IJsMap CreateJsMap<TKey, TValue>(IReadOnlyDictionary<TKey, TValue> dictionary)
Parameters
dictionary
IReadOnlyDictionary<TKey, TValue>The dictionary to copy elements from.
Returns
Type Parameters
TKey
TValue
Remarks
The values are converted to their JavaScript representations during copying.
Exceptions
- ObjectDisposedException
The IFrame object has already been disposed.