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)

'Declaration
Public Property State As Object 
	Get 
	Private Set
'Usage
Dim instance As AreaRegistrationContext 
Dim value As Object 

value = instance.State

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: