Add Method (T)
Collapse the table of content
Expand the table of content

ISet(Of T).Add Method (T)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

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

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft