語言

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

定義

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

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

參數

key
TKey

關鍵是元素要移除。

傳回

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

適用於