ImmutableSortedDictionary<TKey,TValue>.RemoveRange(IEnumerable<TKey>) 方法

定义

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

public:
 System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ RemoveRange(System::Collections::Generic::IEnumerable<TKey> ^ keys);
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> RemoveRange (System.Collections.Generic.IEnumerable<TKey> keys);
member this.RemoveRange : seq<'Key> -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function RemoveRange (keys As IEnumerable(Of TKey)) As ImmutableSortedDictionary(Of TKey, TValue)

参数

keys
IEnumerable<TKey>

要移除的元素的键。The keys of the elements to remove.

返回

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

适用于