Export (0) Print
Expand All

ApiController Class

Defines properties and methods for API controller.

System.Object
  System.Web.Http.ApiController

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

public abstract class ApiController implements IHttpController, IDisposable

The ApiController type exposes the following members.

  NameDescription
Protected methodApiControllerInitializes a new instance of the ApiController class.
Top

  NameDescription
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.
Top

  NameDescription
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.)
Top

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