OrderedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Remove 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 la première occurrence d’un objet spécifique de l’objet ICollection<T>.
virtual bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) = System::Collections::Generic::ICollection<TKey>::Remove;
bool ICollection<TKey>.Remove(TKey item);
abstract member System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
override this.System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
Function Remove (item As TKey) As Boolean Implements ICollection(Of TKey).Remove
Paramètres
- item
- TKey
Objet à supprimer du ICollection<T>.
Retours
true si item elle a été correctement supprimée du ICollection<T>; sinon, false. Cette méthode retourne false également si item elle est introuvable dans l’original ICollection<T>.