Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add Method (T)
Collapse the table of content
Expand the table of content

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)

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.

Silverlight

Supported in: 5, 4

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

Community Additions

ADD
Show:
© 2015 Microsoft