ISet<T>.UnionWith(IEnumerable<T>) Méthode
Définition
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.
Modifie le jeu actuel de sorte qu’il contient tous les éléments présents dans le jeu actuel, dans la collection spécifiée ou dans les deux.
public:
void UnionWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void UnionWith(System.Collections.Generic.IEnumerable<T> other);
abstract member UnionWith : seq<'T> -> unit
Public Sub UnionWith (other As IEnumerable(Of T))
Paramètres
- other
- IEnumerable<T>
Collection à comparer au jeu actuel.
Exceptions
other a la valeur null.
Remarques
Tous les éléments dupliqués sont other ignorés.