ImmutableDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.Remove Method

Removes the first occurrence of a specific object from the immutable dictionary.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

bool ICollection<KeyValuePair<TKey, TValue>>.Remove(
	KeyValuePair<TKey, TValue> item
)

Parameters

item
Type: System.Collections.Generic.KeyValuePair<TKey, TValue>

The item to remove from the dictionary.

Return Value

Type: System.Boolean
true if item was successfully removed; otherwise false.

Implements

ICollection<T>.Remove(T)

ExceptionCondition
NotSupportedException

The dictionary is read-only.

This member is an explicit interface member implementation. It can be used only when the ImmutableDictionary<TKey, TValue> instance is cast to an ICollection<T> interface.

Show: