ControllerBase.ControllerContext 属性

定义

获取或设置 ControllerContext

public:
 property Microsoft::AspNetCore::Mvc::ControllerContext ^ ControllerContext { Microsoft::AspNetCore::Mvc::ControllerContext ^ get(); void set(Microsoft::AspNetCore::Mvc::ControllerContext ^ value); };
[Microsoft.AspNetCore.Mvc.ControllerContext]
public Microsoft.AspNetCore.Mvc.ControllerContext ControllerContext { get; set; }
[<Microsoft.AspNetCore.Mvc.ControllerContext>]
member this.ControllerContext : Microsoft.AspNetCore.Mvc.ControllerContext with get, set
Public Property ControllerContext As ControllerContext

属性值

属性

注解

IControllerActivator 在激活控制器时激活此属性。 如果用户代码直接实例化控制器,getter 将返回空 ControllerContext

适用于