ControllerContext 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
与控制器的当前请求关联的上下文。
public ref class ControllerContext : Microsoft::AspNetCore::Mvc::ActionContext
C#
public class ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext
type ControllerContext = class
inherit ActionContext
Public Class ControllerContext
Inherits ActionContext
- 继承
Controller |
创建一个新的 ControllerContext。 |
Controller |
创建一个新的 ControllerContext。 |
Action |
获取或设置与 ControllerActionDescriptor 当前请求关联的 。 |
Http |
获取或设置 HttpContext 当前请求的 。 (继承自 ActionContext) |
Model |
(继承自 ActionContext) |
Route |
获取或设置 RouteData 当前请求的 。 (继承自 ActionContext) |
Value |
获取或设置当前请求的 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 |