ActionContext Konstruktory

Definice

Přetížení

ActionContext()

Vytvoří prázdný ActionContextobjekt .

ActionContext(ActionContext)

Vytvoří nový objekt ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Vytvoří nový objekt ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Vytvoří nový objekt ActionContext.

ActionContext()

Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs

Vytvoří prázdný ActionContextobjekt .

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

Poznámky

Výchozí konstruktor je k dispozici pouze pro účely testování částí.

Platí pro

ActionContext(ActionContext)

Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs

Vytvoří nový objekt 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)

Parametry

actionContext
ActionContext

Chcete-li ActionContext kopírovat.

Platí pro

ActionContext(HttpContext, RouteData, ActionDescriptor)

Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs

Vytvoří nový objekt 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)

Parametry

httpContext
HttpContext

Hodnota HttpContext pro aktuální požadavek.

routeData
RouteData

Hodnota RouteData pro aktuální požadavek.

actionDescriptor
ActionDescriptor

Pro ActionDescriptor vybranou akci.

Platí pro

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs
Zdroj:
ActionContext.cs

Vytvoří nový objekt 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)

Parametry

httpContext
HttpContext

Hodnota HttpContext pro aktuální požadavek.

routeData
RouteData

Hodnota RouteData pro aktuální požadavek.

actionDescriptor
ActionDescriptor

Pro ActionDescriptor vybranou akci.

Platí pro