Export (0) Print
Expand All

RouteData.GetRequiredString Method

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.

ExceptionCondition
InvalidOperationException

A value does not exist for valueName.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft