ISet<T>.Add Method (T)

Adds an element to the current set and returns a value to indicate if the element was successfully added.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)


Function Add ( _
    item As T _
) As Boolean
bool Add(
    T item


  • item
    Type: T
    The element to add to the set.

Return Value

Type: System.Boolean
true if the element is added to the set; false if the element is already in the set.

Version Information


Supported in: 5, 4


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.