Share via


CoseHeaderMap.Item[CoseHeaderLabel] 屬性

定義

取得或設定具有指定索引鍵的項目。

public:
 property System::Security::Cryptography::Cose::CoseHeaderValue default[System::Security::Cryptography::Cose::CoseHeaderLabel] { System::Security::Cryptography::Cose::CoseHeaderValue get(System::Security::Cryptography::Cose::CoseHeaderLabel key); void set(System::Security::Cryptography::Cose::CoseHeaderLabel key, System::Security::Cryptography::Cose::CoseHeaderValue value); };
public System.Security.Cryptography.Cose.CoseHeaderValue this[System.Security.Cryptography.Cose.CoseHeaderLabel key] { get; set; }
member this.Item(System.Security.Cryptography.Cose.CoseHeaderLabel) : System.Security.Cryptography.Cose.CoseHeaderValue with get, set
Default Public Property Item(key As CoseHeaderLabel) As CoseHeaderValue

參數

key
CoseHeaderLabel

要取得或設定之項目的索引鍵。

屬性值

具有指定索引鍵的項目。

實作

例外狀況

屬性已設定,而且 CoseHeaderMap 是唯讀的。

屬性已設定,且所指定 CoseHeaderValue 中的編碼位元組包含尾端數據或多個CBOR值。

屬性已擷取,並且找不到 key

適用於