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'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 de la ICollection<T>.
Retours
true si item a été correctement supprimée du ICollection<T>; sinon, false. Cette méthode retourne également false si item est introuvable dans le ICollection<T>d’origine.