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

Definition

Removes the element with the specified key from the IDictionary<TKey,TValue>.

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 IDictionary<TKey,TValue>.

Implements

Applies to

Product Versions
.NET 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)