ControllerContext Constructors

Definition

Overloads

ControllerContext()

Creates a new ControllerContext.

ControllerContext(ActionContext)

Creates a new ControllerContext.

ControllerContext()

Creates a new ControllerContext.

public:
 ControllerContext();
public ControllerContext ();
Public Sub New ()

Remarks

The default constructor is provided for unit test purposes only.

ControllerContext(ActionContext)

Creates a new ControllerContext.

public:
 ControllerContext(Microsoft::AspNetCore::Mvc::ActionContext ^ context);
public ControllerContext (Microsoft.AspNetCore.Mvc.ActionContext context);
new Microsoft.AspNetCore.Mvc.ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.ControllerContext
Public Sub New (context As ActionContext)

Parameters

context
ActionContext

The ActionContext associated with the current request.

Applies to