ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, 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.
Récupère un élément de cette collection à l’aide de l’identité spécifiée.
public:
virtual bool TryGetValue(System::String ^ identity, bool ignoreCase, [Runtime::InteropServices::Out] T % item);
public virtual bool TryGetValue(string identity, bool ignoreCase, out T item);
abstract member TryGetValue : string * bool * 'T -> bool
override this.TryGetValue : string * bool * 'T -> bool
Public Overridable Function TryGetValue (identity As String, ignoreCase As Boolean, ByRef item As T) As Boolean
Paramètres
- identity
- String
Identité de l’élément à rechercher.
- ignoreCase
- Boolean
true pour effectuer la recherche sans respect de la casse ; sinon, false.
- item
- T
Lorsque cette méthode est retournée, ce paramètre de sortie contient un élément de la collection. S’il n’existe aucun élément correspondant, ce paramètre de sortie contient la valeur Null.
Retours
true s’il existe un élément qui correspond aux critères de recherche ; sinon, false.