AuthorizationContext Constructors

Definition

Overloads

AuthorizationContext()

Initializes a new instance of the AuthorizationContext class.

AuthorizationContext(ControllerContext)
Obsolete.

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

AuthorizationContext(ControllerContext, ActionDescriptor)

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

AuthorizationContext()

Initializes a new instance of the AuthorizationContext class.

public AuthorizationContext ();
Public Sub New ()

Applies to

AuthorizationContext(ControllerContext)

Caution

The recommended alternative is the constructor AuthorizationContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor).

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

[System.Obsolete("The recommended alternative is the constructor AuthorizationContext(ControllerContext controllerContext, ActionDescriptor actionDescriptor).")]
public AuthorizationContext (System.Web.Mvc.ControllerContext controllerContext);
new System.Web.Mvc.AuthorizationContext : System.Web.Mvc.ControllerContext -> System.Web.Mvc.AuthorizationContext
Public Sub New (controllerContext As ControllerContext)

Parameters

controllerContext
ControllerContext

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

Attributes

Applies to

AuthorizationContext(ControllerContext, ActionDescriptor)

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

public AuthorizationContext (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor);
new System.Web.Mvc.AuthorizationContext : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> System.Web.Mvc.AuthorizationContext
Public Sub New (controllerContext As ControllerContext, actionDescriptor As ActionDescriptor)

Parameters

controllerContext
ControllerContext

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

actionDescriptor
ActionDescriptor

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

Applies to