ApiController.ControllerContext 属性

定义

获取或设置 ControllerContext

[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

属性值

当前 ApiControllerSystem.Web.Http.HttpConfiguration

属性

注解

setter 仅用于单元测试目的。

适用于