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

要移除的項目索引鍵。

傳回

ImmutableDictionary<TKey,TValue>

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

適用於