ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.Remove 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
virtual System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Immutable::IImmutableDictionary<TKey, TValue>::Remove;
System.Collections.Immutable.IImmutableDictionary<TKey,TValue> IImmutableDictionary<TKey,TValue>.Remove (TKey key);
abstract member System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.Remove : 'Key -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
override this.System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.Remove : 'Key -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
Function Remove (key As TKey) As IImmutableDictionary(Of TKey, TValue) Implements IImmutableDictionary(Of TKey, TValue).Remove
参数
- key
- TKey
要删除的项的键。
返回
已移除指定元素的新不可变字典;如果在字典中找不到指定的键,则为此实例。