共用方式為


CoseHeaderMap.Remove 方法

定義

多載

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

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

Remove(CoseHeaderLabel)

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

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
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

參數

傳回

如果 true 已成功從 item 中移除,則為 ICollection<T>,否則為 false。 如果在原本的 false 中找不到 item,則這個方法也會傳回 ICollection<T>

實作

例外狀況

標頭對應是唯讀的。

適用於

Remove(CoseHeaderLabel)

來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
CoseHeaderMap.cs
來源:
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>

實作

例外狀況

標頭對應是唯讀的。

適用於