Udostępnij za pośrednictwem


HttpControllerContext Class

Contains information for a single HTTP operation.

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.HttpControllerContext

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

Syntax

'Declaration
Public Class HttpControllerContext
'Usage
Dim instance As HttpControllerContext
public class HttpControllerContext
public ref class HttpControllerContext
type HttpControllerContext =  class end
public class HttpControllerContext

The HttpControllerContext type exposes the following members.

Constructors

  Name Description
Public method HttpControllerContext() Initializes a new instance of the HttpControllerContext class.
Public method HttpControllerContext(HttpConfiguration, IHttpRouteData, HttpRequestMessage) Initializes a new instance of the HttpControllerContext class.

Top

Properties

  Name Description
Public property Configuration Gets or sets the configuration.
Public property Controller Gets or sets the HTTP controller.
Public property ControllerDescriptor Gets or sets the controller descriptor.
Public property Request Gets or sets the request.
Public property RouteData Gets or sets the route data.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

System.Web.Http.Controllers Namespace