CoseHeaderMap.Remove Method

Definition

Overloads

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

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

Remove(CoseHeaderLabel)

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

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

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

public bool Remove (System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue> item);

Parameters

item
KeyValuePair<CoseHeaderLabel,CoseHeaderValue>

The object to remove from the ICollection<T>.

Returns

true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Implements

Exceptions

The header map is read-only.

Applies to

.NET 9 (package-provided) en andere versies
Product Versies
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

Remove(CoseHeaderLabel)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

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

public bool Remove (System.Security.Cryptography.Cose.CoseHeaderLabel label);

Parameters

label
CoseHeaderLabel

The label of the element to remove.

Returns

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey,TValue>.

Implements

Exceptions

The header map is read-only.

Applies to

.NET 9 (package-provided) en andere versies
Product Versies
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)