AreaRegistrationContext AreaRegistrationContext AreaRegistrationContext Class

Definition

Encapsulates the information that is required in order to register an area within an ASP.NET MVC application.

public class AreaRegistrationContext
type AreaRegistrationContext = class
Public Class AreaRegistrationContext
Inheritance
AreaRegistrationContextAreaRegistrationContextAreaRegistrationContext

Constructors

AreaRegistrationContext(String, RouteCollection) AreaRegistrationContext(String, RouteCollection) AreaRegistrationContext(String, RouteCollection)

Initializes a new instance of the AreaRegistrationContext class using the specified area name and routes collection.

AreaRegistrationContext(String, RouteCollection, Object) AreaRegistrationContext(String, RouteCollection, Object) AreaRegistrationContext(String, RouteCollection, Object)

Initializes a new instance of the AreaRegistrationContext class using the specified area name, routes collection, and user-defined data.

Properties

AreaName AreaName AreaName

Gets the name of the area to register.

Namespaces Namespaces Namespaces

Gets the namespaces for the application.

Routes Routes Routes

Gets a collection of defined routes for the application.

State State State

Gets an object that contains user-defined information to pass to the area.

Methods

MapRoute(String, String) MapRoute(String, String) MapRoute(String, String)

Maps the specified URL route and associates it with the area that is specified by the AreaName property.

MapRoute(String, String, Object) MapRoute(String, String, Object) MapRoute(String, String, Object)

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified route default values.

MapRoute(String, String, String[]) MapRoute(String, String, String[]) MapRoute(String, String, String[])

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified namespaces.

MapRoute(String, String, Object, Object) MapRoute(String, String, Object, Object) MapRoute(String, String, Object, Object)

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified route default values and constraint.

MapRoute(String, String, Object, String[]) MapRoute(String, String, Object, String[]) MapRoute(String, String, Object, String[])

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified route default values and namespaces.

MapRoute(String, String, Object, Object, String[]) MapRoute(String, String, Object, Object, String[]) MapRoute(String, String, Object, Object, String[])

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified route default values, constraints, and namespaces.

Applies to