ISet<T>.ExceptWith(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.
Supprime de l’ensemble actuel tous les éléments de la collection spécifiée.
public:
void ExceptWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void ExceptWith (System.Collections.Generic.IEnumerable<T> other);
abstract member ExceptWith : seq<'T> -> unit
Public Sub ExceptWith (other As IEnumerable(Of T))
Paramètres
- other
- IEnumerable<T>
Collection d'éléments à supprimer de l'ensemble.
Exceptions
other a la valeur null.
Remarques
Cette méthode est une opération O(n), où n est le nombre d’éléments dans le other paramètre.