StatusCodeResult Class

 

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

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

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

public class StatusCodeResult : IHttpActionResult

NameDescription
System_CAPS_pubmethodStatusCodeResult(HttpStatusCode, ApiController)

Initializes a new instance of the StatusCodeResult class.

System_CAPS_pubmethodStatusCodeResult(HttpStatusCode, HttpRequestMessage)

Initializes a new instance of the StatusCodeResult class.

NameDescription
System_CAPS_pubpropertyRequest

Gets the request message which led to this result.

System_CAPS_pubpropertyStatusCode

Gets the HTTP status code for the response message.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteAsync(CancellationToken)

Creates a response message asynchronously.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(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.

Return to top
Show: