ControllerContext 类

定义

与控制器的当前请求关联的上下文。

C#
public class ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext
继承
ControllerContext

构造函数

属性

ActionDescriptor

获取或设置与 ControllerActionDescriptor 当前请求关联的 。

HttpContext

获取或设置 HttpContext 当前请求的 。

(继承自 ActionContext)
ModelState

获取 ModelStateDictionary

(继承自 ActionContext)
RouteData

获取或设置 RouteData 当前请求的 。

(继承自 ActionContext)
ValueProviderFactories

获取或设置当前请求的 IValueProviderFactory 实例列表。

适用于

产品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0