RouteValueDictionary.Remove Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.Routing
Assembly:  System.Web (in System.Web.dll)

public bool Remove(
	string key
)

Parameters

key
Type: System.String

The key of the element to remove.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 3.5
Return to top
Show: