CoseHeaderMap.Remove 方法

定义

重载

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

ICollection<T> 中移除特定对象的第一个匹配项。

Remove(CoseHeaderLabel)

IDictionary<TKey,TValue> 中移除包含指定键的元素。

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

ICollection<T> 中移除特定对象的第一个匹配项。

public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue> item);
public bool Remove (System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel, System.Security.Cryptography.Cose.CoseHeaderValue> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel, System.Security.Cryptography.Cose.CoseHeaderValue> -> bool
Public Function Remove (item As KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)) As Boolean

参数

item
KeyValuePair<CoseHeaderLabel,CoseHeaderValue>

要从 ICollection<T> 中删除的对象。

返回

如果从 true 中成功移除 item,则为 ICollection<T>;否则为 false。 如果在原始 false 中没有找到 item,该方法也会返回 ICollection<T>

实现

例外

标头映射为只读。

适用于

Remove(CoseHeaderLabel)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

IDictionary<TKey,TValue> 中移除包含指定键的元素。

public:
 virtual bool Remove(System::Security::Cryptography::Cose::CoseHeaderLabel label);
public bool Remove (System.Security.Cryptography.Cose.CoseHeaderLabel label);
abstract member Remove : System.Security.Cryptography.Cose.CoseHeaderLabel -> bool
override this.Remove : System.Security.Cryptography.Cose.CoseHeaderLabel -> bool
Public Function Remove (label As CoseHeaderLabel) As Boolean

参数

label
CoseHeaderLabel

要删除的元素的标签。

返回

如果该元素已成功移除,则为 true;否则为 false。 如果在原始 false 中没有找到 key,此方法也会返回 IDictionary<TKey,TValue>

实现

例外

标头映射为只读。

适用于