ReadOnlySet<T>.ISet<T>.Add(T) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute un élément au jeu actuel et retourne une valeur pour indiquer si l’élément a été ajouté avec succès.
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
- item
- T
Élément à ajouter à l’ensemble.
true
si l’élément est ajouté à l’ensemble ; false
si l’élément est déjà dans l’ensemble.
Produit | Versions |
---|---|
.NET | 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :