ActionContext Constructors

Definition

Overloads

ActionContext()

Creates an empty ActionContext.

ActionContext(ActionContext)

Creates a new ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Creates a new ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Creates a new ActionContext.

ActionContext()

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
ActionContext.cs

Creates an empty ActionContext.

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

Remarks

The default constructor is provided for unit test purposes only.

Applies to

ActionContext(ActionContext)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
ActionContext.cs

Creates a new ActionContext.

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

Parameters

actionContext
ActionContext

The ActionContext to copy.

Applies to

ActionContext(HttpContext, RouteData, ActionDescriptor)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
ActionContext.cs

Creates a new ActionContext.

public:
 ActionContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData, Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^ actionDescriptor);
public ActionContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor);
new Microsoft.AspNetCore.Mvc.ActionContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor -> Microsoft.AspNetCore.Mvc.ActionContext
Public Sub New (httpContext As HttpContext, routeData As RouteData, actionDescriptor As ActionDescriptor)

Parameters

httpContext
HttpContext

The HttpContext for the current request.

routeData
RouteData

The RouteData for the current request.

actionDescriptor
ActionDescriptor

The ActionDescriptor for the selected action.

Applies to

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
ActionContext.cs

Creates a new ActionContext.

public:
 ActionContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData, Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^ actionDescriptor, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public ActionContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.ActionContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionContext
Public Sub New (httpContext As HttpContext, routeData As RouteData, actionDescriptor As ActionDescriptor, modelState As ModelStateDictionary)

Parameters

httpContext
HttpContext

The HttpContext for the current request.

routeData
RouteData

The RouteData for the current request.

actionDescriptor
ActionDescriptor

The ActionDescriptor for the selected action.

Applies to