Düzenle

Aracılığıyla paylaş


CoseHeaderMap Class

Definition

Represents a collection of header parameters of a COSE message.

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)
Inheritance
CoseHeaderMap
Implements

Constructors

CoseHeaderMap()

Initializes a new instance of the CoseHeaderMap class.

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value that indicates whether the header map is read-only.

Item[CoseHeaderLabel]

Gets or sets the element with the specified key.

Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

Values

Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

Methods

Add(CoseHeaderLabel, Byte[])

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, CoseHeaderValue)

Adds an element with the provided key and value to the IDictionary<TKey,TValue>.

Add(CoseHeaderLabel, Int32)

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, ReadOnlySpan<Byte>)

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, String)

Adds the specified label and value to the header map.

Add(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

Contains(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Determines whether the ICollection<T> contains a specific value.

ContainsKey(CoseHeaderLabel)

Determines whether the IDictionary<TKey,TValue> contains an element with the specified key.

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

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel)

Gets the value associated with the specified label, as a byte string.

GetValueAsInt32(CoseHeaderLabel)

Gets the value associated with the specified label, as a signed integer.

GetValueAsString(CoseHeaderLabel)

Gets the value associated with the specified label, as a text string.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(CoseHeaderLabel)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Removes the first occurrence of a specific object from the ICollection<T>.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetValue(CoseHeaderLabel, CoseHeaderValue)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Values

Gets an enumerable collection that contains the values in the read-only dictionary.

Extension Methods

ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector function.

ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector and element selector functions.

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Creates a FrozenSet<T> with the specified values.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Creates an immutable array from the specified collection.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Constructs an immutable dictionary based on some transformation of a sequence.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable hash set of its contents.

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable list of its contents.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable sorted set of its contents.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Applies to