ActionContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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。
- 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。
- actionDescriptor
- ActionDescriptor
ActionDescriptor所选操作的 。
- modelState
- ModelStateDictionary