CoseHeaderMap 類別

定義

表示 COSE 訊息標頭參數的集合。

public ref class CoseHeaderMap sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IDictionary<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IReadOnlyDictionary<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>
public sealed class CoseHeaderMap : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IDictionary<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IReadOnlyDictionary<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>
type CoseHeaderMap = class
    interface IDictionary<CoseHeaderLabel, CoseHeaderValue>
    interface ICollection<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
    interface seq<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
    interface IEnumerable
    interface IReadOnlyDictionary<CoseHeaderLabel, CoseHeaderValue>
    interface IReadOnlyCollection<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
Public NotInheritable Class CoseHeaderMap
Implements ICollection(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IDictionary(Of CoseHeaderLabel, CoseHeaderValue), IEnumerable(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IReadOnlyCollection(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IReadOnlyDictionary(Of CoseHeaderLabel, CoseHeaderValue)
繼承
CoseHeaderMap
實作

建構函式

CoseHeaderMap()

初始化 CoseHeaderMap 類別的新執行個體。

屬性

Count

取得 ICollection<T> 中所包含的項目數。

IsReadOnly

取得值,指出標頭對應是否為唯讀。

Item[CoseHeaderLabel]

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

Keys

取得 ICollection<T>,包含 IDictionary<TKey,TValue> 的索引鍵。

Values

取得 ICollection<T>,包含 IDictionary<TKey,TValue> 中的值。

方法

Add(CoseHeaderLabel, Byte[])

將指定的標籤和值新增至標頭對應。

Add(CoseHeaderLabel, CoseHeaderValue)

將隨附有索引鍵和值的項目加入至 IDictionary<TKey,TValue>

Add(CoseHeaderLabel, Int32)

將指定的標籤和值新增至標頭對應。

Add(CoseHeaderLabel, ReadOnlySpan<Byte>)

將指定的標籤和值新增至標頭對應。

Add(CoseHeaderLabel, String)

將指定的標籤和值新增至標頭對應。

Add(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

將項目加入至 ICollection<T>

Clear()

ICollection<T> 中移除所有項目。

Contains(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

判斷 ICollection<T> 是否包含特定值。

ContainsKey(CoseHeaderLabel)

判斷 IDictionary<TKey,TValue> 是否包含具有指定之索引鍵的項目。

CopyTo(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>[], Int32)

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

傳回逐一查看集合的列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetValueAsBytes(CoseHeaderLabel)

取得與指定標籤相關聯的值,做為位元組字串。

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

取得與指定標籤相關聯的值,做為位元組字串。

GetValueAsInt32(CoseHeaderLabel)

取得與指定標籤相關聯的值,做為帶正負號的整數。

GetValueAsString(CoseHeaderLabel)

取得與指定標籤相關聯的值,做為文字字串。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(CoseHeaderLabel)

IDictionary<TKey,TValue> 中移除具有指定之索引鍵的項目。

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

ICollection<T> 移除特定物件之第一個符合的元素。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
TryGetValue(CoseHeaderLabel, CoseHeaderValue)

表示 COSE 訊息標頭參數的集合。

明確介面實作

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Keys

取得可列舉集合,其中包含唯讀字典中的索引鍵。

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Values

取得可列舉集合,其中包含唯讀字典中的值。

擴充方法

AsReadOnly<TKey,TValue>(IDictionary<TKey,TValue>)

傳回目前字典的唯讀 ReadOnlyDictionary<TKey,TValue> 包裝函式。

適用於