Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableDictionary<TKey, TValue>::Remove Method (TKey)

 

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
)

Parameters

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.

Return to top
Show:
© 2017 Microsoft