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> 包装器。

适用于