RouteData.GetRequiredString Method (String)

 

Retrieves the value with the specified identifier.

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

public string GetRequiredString(
	string valueName
)

Parameters

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.

Exception Condition
InvalidOperationException

A value does not exist for valueName.

.NET Framework
Available since 3.5
Return to top
Show: