Share via


AreaHelpers.GetAreaName Method

 

Retrieves the name of the area.

Namespace:   Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetAreaName(RouteBase)

Retrieves the name of the area with the given route.

System_CAPS_pubmethodSystem_CAPS_static GetAreaName(RouteData)

Retrieves the name of the area with the given route data.

See Also

AreaHelpers Class
Microsoft.Web.Mvc Namespace

Return to top

AreaHelpers.GetAreaName Method (RouteBase)

Retrieves the name of the area with the given route.

Syntax

public static string GetAreaName(
    RouteBase route
)
public:
static String^ GetAreaName(
    RouteBase^ route
)
static member GetAreaName : 
        route:RouteBase -> string
Public Shared Function GetAreaName (
    route As RouteBase
) As String

Parameters

Return Value

Type: System.String

The name of the area to get.

Return to top

AreaHelpers.GetAreaName Method (RouteData)

Retrieves the name of the area with the given route data.

Syntax

public static string GetAreaName(
    RouteData routeData
)
public:
static String^ GetAreaName(
    RouteData^ routeData
)
static member GetAreaName : 
        routeData:RouteData -> string
Public Shared Function GetAreaName (
    routeData As RouteData
) As String

Parameters

Return Value

Type: System.String

The name of the area.

Return to top