ImmutableDictionary<TKey,TValue>.Remove(TKey) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從不可變字典中移除具有指定索引鍵的專案。
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
關鍵是元素要移除。
傳回
一個移除指定元素的新不變字典;或若指定金鑰在字典中找不到,則使用此例。