AuthorizationContext Constructor

 

Initializes a new instance of the AuthorizationContext class.

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

NameDescription
System_CAPS_pubmethodAuthorizationContext()

Initializes a new instance of the AuthorizationContext class.

System_CAPS_pubmethodAuthorizationContext(ControllerContext)

Obsolete.Initializes a new instance of the AuthorizationContext class using the specified controller context.

System_CAPS_pubmethodAuthorizationContext(ControllerContext, ActionDescriptor)

Initializes a new instance of the AuthorizationContext class using the specified controller context and action descriptor.

Return to top

AuthorizationContext Constructor ()

Initializes a new instance of the AuthorizationContext class.

Public Sub New
Return to top

AuthorizationContext Constructor (ControllerContext)

Note: This API is now obsolete.

Initializes a new instance of the AuthorizationContext class using the specified controller context.

<ObsoleteAttribute("The recommended alternative is the constructor AuthorizationContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor).")>
Public Sub New (
	controllerContext As ControllerContext
)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The context within which the result is executed. The context information includes the controller, HTTP content, request context, and route data.

Return to top

AuthorizationContext Constructor (ControllerContext, ActionDescriptor)

Initializes a new instance of the AuthorizationContext class using the specified controller context and action descriptor.

Public Sub New (
	controllerContext As ControllerContext,
	actionDescriptor As ActionDescriptor
)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The context in which the result is executed. The context information includes the controller, HTTP content, request context, and route data.

actionDescriptor
Type: System.Web.Mvc.ActionDescriptor

An object that provides information about an action method, such as its name, controller, parameters, attributes, and filters.

Return to top
Show: