CoseHeaderMap.TryGetValue(CoseHeaderLabel, CoseHeaderValue) Méthode

Définition

Obtient la valeur associée à la clé spécifiée.

public:
 virtual bool TryGetValue(System::Security::Cryptography::Cose::CoseHeaderLabel key, [Runtime::InteropServices::Out] System::Security::Cryptography::Cose::CoseHeaderValue % value);
public bool TryGetValue(System.Security.Cryptography.Cose.CoseHeaderLabel key, out System.Security.Cryptography.Cose.CoseHeaderValue value);
abstract member TryGetValue : System.Security.Cryptography.Cose.CoseHeaderLabel * CoseHeaderValue -> bool
override this.TryGetValue : System.Security.Cryptography.Cose.CoseHeaderLabel * CoseHeaderValue -> bool
Public Function TryGetValue (key As CoseHeaderLabel, ByRef value As CoseHeaderValue) As Boolean

Paramètres

key
CoseHeaderLabel

Clé dont la valeur doit être obtenu.

value
CoseHeaderValue

Lorsque cette méthode est retournée, contient la valeur associée à la clé spécifiée, si la clé est trouvée ; sinon, valeur par défaut pour le type du value paramètre. Ce paramètre est passé non initialisé.

Retours

true si l’objet qui implémente IDictionary<TKey,TValue> contient un élément avec la clé spécifiée ; sinon, false.

S’applique à