Partager via


ActionContext Constructeurs

Définition

Surcharges

ActionContext()

Crée un ActionContext vide.

ActionContext(ActionContext)

Crée un ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Crée un ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Crée un ActionContext.

ActionContext()

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

Crée un ActionContext vide.

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

Remarques

Le constructeur par défaut est fourni à des fins de test unitaire uniquement.

S’applique à

ActionContext(ActionContext)

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

Crée un 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)

Paramètres

actionContext
ActionContext

ActionContext à copier.

S’applique à

ActionContext(HttpContext, RouteData, ActionDescriptor)

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

Crée un 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)

Paramètres

httpContext
HttpContext

HttpContext pour la requête actuelle.

routeData
RouteData

RouteData pour la requête actuelle.

actionDescriptor
ActionDescriptor

ActionDescriptor pour l’action sélectionnée.

S’applique à

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

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

Crée un 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)

Paramètres

httpContext
HttpContext

HttpContext pour la requête actuelle.

routeData
RouteData

RouteData pour la requête actuelle.

actionDescriptor
ActionDescriptor

ActionDescriptor pour l’action sélectionnée.

modelState
ModelStateDictionary

L’ModelStateDictionaryopérateur

S’applique à