語言

IImmutableDictionary<TKey,TValue>.Remove(TKey) 方法

定義

從不可變字典中移除具有指定索引鍵的專案。

public:
 System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ Remove(TKey key);
public System.Collections.Immutable.IImmutableDictionary<TKey,TValue> Remove(TKey key);
abstract member Remove : 'Key -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
Public Function Remove (key As TKey) As IImmutableDictionary(Of TKey, TValue)

參數

key
TKey

關鍵是元素要移除。

傳回

一個移除指定元素的新不變字典;或若指定金鑰在字典中找不到,則使用此例。

適用於