共用方式為


ActionContext 建構函式

定義

多載

ActionContext()

建立空的 ActionContext

ActionContext(ActionContext)

建立新的 ActionContext

ActionContext(HttpContext, RouteData, ActionDescriptor)

建立新的 ActionContext

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

建立新的 ActionContext

ActionContext()

來源:
ActionContext.cs
來源:
ActionContext.cs
來源:
ActionContext.cs

建立空的 ActionContext

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

備註

預設建構函式僅供單元測試之用。

適用於

ActionContext(ActionContext)

來源:
ActionContext.cs
來源:
ActionContext.cs
來源:
ActionContext.cs

建立新的 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)

參數

actionContext
ActionContext

要複製的 ActionContext

適用於

ActionContext(HttpContext, RouteData, ActionDescriptor)

來源:
ActionContext.cs
來源:
ActionContext.cs
來源:
ActionContext.cs

建立新的 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)

參數

httpContext
HttpContext

目前要求的 HttpContext

routeData
RouteData

目前要求的 RouteData

actionDescriptor
ActionDescriptor

ActionDescriptor所選動作的 。

適用於

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

來源:
ActionContext.cs
來源:
ActionContext.cs
來源:
ActionContext.cs

建立新的 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)

參數

httpContext
HttpContext

目前要求的 HttpContext

routeData
RouteData

目前要求的 RouteData

actionDescriptor
ActionDescriptor

ActionDescriptor所選動作的 。

適用於