ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) Méthode

Définition

Récupère un élément de cette collection en utilisant 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 une recherche ne respectant pas la casse ; sinon, false.

item
T

Lorsque cette méthode retourne une valeur, ce paramètre de sortie contient un élément de la collection. S'il n'existe aucune correspondance d'élément, ce paramètre de sortie contient la valeur Null.

Retours

true si un élément correspond aux critères de recherche ; sinon, false.

S’applique à