Export (0) Print
Expand All

StatusCodeResult Class

Represents an action result that returns a specified HTTP status code.

System.Object
  System.Web.Http.Results.StatusCodeResult

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

public class StatusCodeResult : IHttpActionResult

The StatusCodeResult type exposes the following members.

  NameDescription
Public methodStatusCodeResult(HttpStatusCode, HttpRequestMessage)Initializes a new instance of the StatusCodeResult class.
Public methodStatusCodeResult(HttpStatusCode, ApiController)Initializes a new instance of the StatusCodeResult class.
Top

  NameDescription
Public propertyRequestGets the request message which led to this result.
Public propertyStatusCodeGets the HTTP status code for the response message.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodExecuteAsyncCreates a response message asynchronously.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
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:
© 2015 Microsoft