AreaRegistrationContext Class

 

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

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.AreaRegistrationContext

Syntax

public class AreaRegistrationContext
public ref class AreaRegistrationContext 
type AreaRegistrationContext = class end
Public Class AreaRegistrationContext

Constructors

Name Description
System_CAPS_pubmethod AreaRegistrationContext(String, RouteCollection)

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

System_CAPS_pubmethod AreaRegistrationContext(String, RouteCollection, Object)

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

Properties

Name Description
System_CAPS_pubproperty AreaName

Gets the name of the area to register.

System_CAPS_pubproperty Namespaces

Gets the namespaces for the application.

System_CAPS_pubproperty Routes

Gets a collection of defined routes for the application.

System_CAPS_pubproperty State

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

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod MapRoute(String, String)

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

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

The primary use of this context object is to call one of the area-enabled MapRoute method overloads, which mirror MapRoute methods.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top