This documentation is archived and is not being maintained.

RouteData.GetRequiredString Method

Retrieves the value with the specified identifier.

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

public string GetRequiredString(
	string valueName


Type: System.String

The key of the value to retrieve.

Return Value

Type: System.String
The element in the Values property whose key matches valueName.


A value does not exist for valueName.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1