Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Remove Method

ImmutableDictionary<TKey, TValue>.Remove Method

Removes the element with the specified key from the immutable dictionary.

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

public ImmutableDictionary<TKey, TValue> Remove(
	TKey key


Type: TKey

The key of the element to remove.

Return Value

Type: System.Collections.Immutable.ImmutableDictionary<TKey, TValue>
A new immutable dictionary with the specified element removed; or this instance if the specified key cannot be found in the dictionary.
© 2015 Microsoft