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

要移除的項目索引鍵。

傳回

移除指定之項目的新不可變字典,如果在字典中找不到指定的索引鍵,則為此執行個體。

適用於