Export (0) Print
Expand All

AreaRegistrationContext.State Property

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

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

public Object State { get; private set; }

Property Value

Type: System.Object
An object that contains user-defined information to pass to the area.

The State property enables you to pass any type of information to the area that is being registered. For example, you might want to pass some or all of the following information:

  • A reference to the HttpApplication object.

  • Repository information.

  • A reference to a log.

  • A reference to an Inversion of Control (IOC) container.

Show:
© 2014 Microsoft