ActionContext Konstruktoren

Definition

Überlädt

ActionContext()

Erstellt ein leeres ActionContext.

ActionContext(ActionContext)

Erstellt einen neuen ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor)

Erstellt einen neuen ActionContext.

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Erstellt einen neuen ActionContext.

ActionContext()

Erstellt ein leeres ActionContext.

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

Hinweise

Der Standardkonstruktor wird nur für Komponententestzwecke bereitgestellt.

Gilt für:

ActionContext(ActionContext)

Erstellt einen neuen 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)

Parameter

actionContext
ActionContext

Das ActionContext, das kopiert werden soll.

Gilt für:

ActionContext(HttpContext, RouteData, ActionDescriptor)

Erstellt einen neuen 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)

Parameter

httpContext
HttpContext

Das HttpContext für die aktuelle Anforderung.

routeData
RouteData

Das RouteData für die aktuelle Anforderung.

actionDescriptor
ActionDescriptor

Der ActionDescriptor für die ausgewählte Aktion.

Gilt für:

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

Erstellt einen neuen 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)

Parameter

httpContext
HttpContext

Das HttpContext für die aktuelle Anforderung.

routeData
RouteData

Das RouteData für die aktuelle Anforderung.

actionDescriptor
ActionDescriptor

Der ActionDescriptor für die ausgewählte Aktion.

Gilt für: