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

定义

从不可变排序字典中移除具有指定值的元素。Removes the element with the specified value from the immutable sorted dictionary.

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

参数

value
TKey

要移除的元素的值。The value of the element to remove.

返回

已移除指定元素的新不可变字典;如果在字典中找不到指定的值,则为此实例。A new immutable dictionary with the specified element removed; or this instance if the specified value cannot be found in the dictionary.

适用于