ImmutableDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove Method

Definition

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

C#
bool IDictionary<TKey,TValue>.Remove(TKey key);

Parameters

key
TKey

The key of the element to remove.

Returns

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original generic dictionary.

Implements

Exceptions

key is null.

Applies to

Produkt Versioner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0