ApiController Class

Defines properties and methods for API controller.


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

public ref class ApiController abstract : IHttpController, 

The ApiController type exposes the following members.

Protected methodApiControllerInitializes a new instance of the ApiController class.

Public propertyConfigurationGets or sets the HttpConfiguration of the current ApiController.
Public propertyControllerContextGets the HttpControllerContext of the current ApiController.
Public propertyModelStateGets the model state after the model binding process.
Public propertyRequestGets or sets the HttpRequestMessage of the current ApiController.
Public propertyUrlReturns an instance of a UrlHelper, which is used to generate URLs to other APIs.
Public propertyUser Returns the current principal associated with this request.

Public methodDispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.
Public methodEquals (Inherited from Object.)
Public methodExecuteAsyncExecutes asynchronously a single HTTP operation.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitializeInitializes the ApiController instance with the specified controllerContext.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.