Freigeben über


AuthorizationContext Constructor (ControllerContext, ActionDescriptor)

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

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

Syntax

'Declaration
Public Sub New ( _
    controllerContext As ControllerContext, _
    actionDescriptor As ActionDescriptor _
)
public AuthorizationContext(
    ControllerContext controllerContext,
    ActionDescriptor actionDescriptor
)
public:
AuthorizationContext(
    ControllerContext^ controllerContext, 
    ActionDescriptor^ 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.

See Also

Reference

AuthorizationContext Class

AuthorizationContext Overload

System.Web.Mvc Namespace