Partilhar via


ActionContext Construtores

Definição

Sobrecargas

ActionContext()

Cria um ActionContext vazio.

ActionContext(ActionContext)

Cria um novo ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Cria um novo ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Cria um novo ActionContext.

ActionContext()

Origem:
ActionContext.cs
Origem:
ActionContext.cs
Origem:
ActionContext.cs

Cria um ActionContext vazio.

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

Comentários

O construtor padrão é fornecido apenas para fins de teste de unidade.

Aplica-se a

ActionContext(ActionContext)

Origem:
ActionContext.cs
Origem:
ActionContext.cs
Origem:
ActionContext.cs

Cria um novo 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)

Parâmetros

actionContext
ActionContext

O ActionContext para cópia.

Aplica-se a

ActionContext(HttpContext, RouteData, ActionDescriptor)

Origem:
ActionContext.cs
Origem:
ActionContext.cs
Origem:
ActionContext.cs

Cria um novo 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)

Parâmetros

httpContext
HttpContext

O HttpContext para a solicitação atual.

routeData
RouteData

O RouteData para a solicitação atual.

actionDescriptor
ActionDescriptor

O ActionDescriptor para a ação selecionada.

Aplica-se a

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Origem:
ActionContext.cs
Origem:
ActionContext.cs
Origem:
ActionContext.cs

Cria um novo 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)

Parâmetros

httpContext
HttpContext

O HttpContext para a solicitação atual.

routeData
RouteData

O RouteData para a solicitação atual.

actionDescriptor
ActionDescriptor

O ActionDescriptor para a ação selecionada.

Aplica-se a