FrozenSet<T>.ISet<T>.Add(T) Méthode

Définition

Ajoute un élément à l’ensemble actuel et retourne une valeur qui indique si l’ajout a réussi.

 virtual bool System.Collections.Generic.ISet<T>.Add(T item) = System::Collections::Generic::ISet<T>::Add;
bool ISet<T>.Add (T item);
abstract member System.Collections.Generic.ISet<T>.Add : 'T -> bool
override this.System.Collections.Generic.ISet<T>.Add : 'T -> bool
Function Add (item As T) As Boolean Implements ISet(Of T).Add

Paramètres

item
T

Élément à ajouter à l'ensemble.

Retours

true si l’élément est ajouté à l’ensemble ; false si l’élément figure déjà dans l’ensemble.

Implémente

S’applique à