Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

System.Object
  System.Web.Mvc.AreaRegistrationContext

public class AreaRegistrationContext

NameDescription
System_CAPS_pubmethodAreaRegistrationContext(String, RouteCollection)

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

System_CAPS_pubmethodAreaRegistrationContext(String, RouteCollection, Object)

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

NameDescription
System_CAPS_pubpropertyAreaName

Gets the name of the area to register.

System_CAPS_pubpropertyNamespaces

Gets the namespaces for the application.

System_CAPS_pubpropertyRoutes

Gets a collection of defined routes for the application.

System_CAPS_pubpropertyState

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

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodMapRoute(String, String)

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

System_CAPS_pubmethodMapRoute(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_pubmethodMapRoute(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_pubmethodMapRoute(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_pubmethodMapRoute(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_pubmethodMapRoute(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_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

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

Return to top
Show:
© 2015 Microsoft