Condividi tramite


ISet<T>.Add Method (T)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

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

Parameters

  • 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

Silverlight

Supported in: 5, 4

Platforms

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