Freigeben über


ApiController.ControllerContext Property

Gets the HttpControllerContext of the current ApiController.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Property ControllerContext As HttpControllerContext
    Get
    Set
'Usage
Dim instance As ApiController
Dim value As HttpControllerContext

value = instance.ControllerContext

instance.ControllerContext = value
public HttpControllerContext ControllerContext { get; set; }
public:
property HttpControllerContext^ ControllerContext {
    HttpControllerContext^ get ();
    void set (HttpControllerContext^ value);
}
member ControllerContext : HttpControllerContext with get, set
function get ControllerContext () : HttpControllerContext
function set ControllerContext (value : HttpControllerContext)

Property Value

Type: System.Web.Http.Controllers.HttpControllerContext
The HttpControllerContext of the current ApiController.

See Also

Reference

ApiController Class

System.Web.Http Namespace