Compartir a través de


ActionContext Constructores

Definición

Sobrecargas

ActionContext()

Crea una colección ActionContext vacía.

ActionContext(ActionContext)

Crea un nuevo ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Crea un nuevo ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Crea un nuevo ActionContext.

ActionContext()

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

Crea una colección ActionContext vacía.

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

Comentarios

El constructor predeterminado solo se proporciona con fines de prueba unitaria.

Se aplica a

ActionContext(ActionContext)

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

Crea un nuevo 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

Colección ActionContext que se va a copiar.

Se aplica a

ActionContext(HttpContext, RouteData, ActionDescriptor)

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

Crea un nuevo 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

Objeto HttpContext de la solicitud actual.

routeData
RouteData

Objeto RouteData de la solicitud actual.

actionDescriptor
ActionDescriptor

para ActionDescriptor la acción seleccionada.

Se aplica a

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

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

Crea un nuevo 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

Objeto HttpContext de la solicitud actual.

routeData
RouteData

Objeto RouteData de la solicitud actual.

actionDescriptor
ActionDescriptor

para ActionDescriptor la acción seleccionada.

Se aplica a