Export (0) Print
Expand All

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
)

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.

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

Community Additions

ADD
Show:
© 2015 Microsoft