ActionContext 构造函数

定义

重载

ActionContext()

创建一个空的 ActionContext

ActionContext(ActionContext)

创建一个新的 ActionContext

ActionContext(HttpContext, RouteData, ActionDescriptor)

创建一个新的 ActionContext

ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)

创建一个新的 ActionContext

ActionContext()

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

创建一个空的 ActionContext

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

注解

默认构造函数仅用于单元测试目的。

适用于

ActionContext(ActionContext)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
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)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
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)

Source:
ActionContext.cs
Source:
ActionContext.cs
Source:
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所选操作的 。

适用于