Click or drag to resize

IJsSet Interface

A JavaScript set.

Namespace:  DotNetBrowser.Js.Collections
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.5
Syntax
C#
public interface IJsSet : IJsObject, IAutoDisposable

The IJsSet type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the IJsSet.
Public propertyFrame
Gets the IFrame instance this JavaScript object is bound to.
(Inherited from IJsObject.)
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyProperties
Gets the object properties as a live collection. Modifying this collection will lead to updating the object properties.
(Inherited from IJsObject.)
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the IJsSet.
Public methodClear
Removes all items from this IJsSet. Does nothing if the set is empty.
Public methodContains
Determines whether the IJsSet contains a specific value.
Public methodInvokeT(String, Object)
Executes the function with the given methodName and the args in the JavaScript object. This method blocks current thread execution until the function finishes its execution. If the function raises an exception, then a JsException with an error message that describes the reason of the exception will be thrown. Same error message will be printed in JavaScript Console.
(Inherited from IJsObject.)
Public methodInvokeAsync(String, Object)
Asynchronously executes the function with the given methodName and the args in the JavaScript object without blocking the current thread.
(Inherited from IJsObject.)
Public methodRemove
Removes the specified item from this set.
Public methodToReadOnlyCollection
Copies the contents of the IJsSet to a new IReadOnlyCollectionT.
Public methodToReadOnlyCollectionT
Copies the contents of the IJsSet to a new IReadOnlyCollectionT.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
Extension Methods
  NameDescription
Public Extension MethodToJsonString
Converts the given JavaScript object into a JSON string.
(Defined by JsonExtensions.)
Top
Remarks
A set 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 JavaScript objects are automatically disposed.
See Also