Edit

Share via


RouteValueDictionary.Remove(String) Method

Definition

Removes the value that has the specified key from the dictionary.

C#
public bool Remove(string key);

Parameters

key
String

The key of the element to remove.

Returns

true if the element is found and removed; otherwise, false. This method returns false if key is not found in the dictionary.

Implements

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also