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 | |
---|---|---|
GetAreaName(RouteBase) | Retrieves the name of the area with the given route. |
|
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
route
Type: System.Web.Routing.RouteBaseThe route.
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
routeData
Type: System.Web.Routing.RouteDataThe route data.
Return Value
Type: System.String
The name of the area.
Return to top