Table of Contents

Interface IJsSet

Namespace
DotNetBrowser.Js.Collections
Assembly
DotNetBrowser.dll

A JavaScript set.

public interface IJsSet : IJsObject, IAutoDisposable
Inherited Members
Extension Methods

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.

Properties

Count

Gets the number of elements contained in the IJsSet.

Methods

Add(object)

Adds an item to the IJsSet.

Clear()

Removes all items from this IJsSet. Does nothing if the set is empty.

Contains(object)

Determines whether the IJsSet contains a specific value.

Remove(object)

Removes the specified item from this set.

ToReadOnlyCollection()

Copies the contents of the IJsSet to a new IReadOnlyCollection<T>.

ToReadOnlyCollection<T>()

Copies the contents of the IJsSet to a new IReadOnlyCollection<T>.