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

Return to top
Show:
© 2015 Microsoft