語言

CoseHeaderMap.TryGetValue(CoseHeaderLabel, CoseHeaderValue) 方法

定義

取得與指定索引鍵相關聯的值。

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

參數

key
CoseHeaderLabel

該取得價值的鑰匙。

value
CoseHeaderValue

當此方法回傳時,包含與指定鍵相關聯的值,若找到該鍵;否則,參數類型的 value 預設值。 這個參數會未初始化傳遞。

傳回

true 若實作 IDictionary<TKey,TValue> 物件包含具有指定鍵的元素;否則, false。

適用於