Прочетете на английски

Споделяне чрез


AdditionalPropertiesDictionary<TValue>.Remove(String) Method

Definition

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

C#
public bool Remove(string key);

Parameters

key
String

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

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)