Partager via


ReadOnlyObservableSet<T>.AddItem(T) Method

Definition

Adds the specified element to a set.

protected:
 bool AddItem(T item);
protected:
 bool AddItem(T item);
bool AddItem(T item);
protected bool AddItem (T item);
member this.AddItem : 'T -> bool
Protected Function AddItem (item As T) As Boolean

Parameters

item
T

The element to add to the set.

Returns

true if the element is added to the ReadOnlyObservableSet<T> object; false if the element is already present.

Applies to