RouteData.GetRequiredString 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.

Retrieves the value with the specified identifier.

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

member GetRequiredString : 
        valueName:string -> string

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: