NegotiatedContentResult<T>(HttpStatusCode, T) Constructor

Definition

Initializes a new instance of the NegotiatedContentResult<T> class with the values provided.

public NegotiatedContentResult (System.Net.HttpStatusCode statusCode, T content);
new System.Web.Http.NegotiatedContentResult<'T> : System.Net.HttpStatusCode * 'T -> System.Web.Http.NegotiatedContentResult<'T>
Public Sub New (statusCode As HttpStatusCode, content As T)

Parameters

statusCode
HttpStatusCode

The HTTP status code for the response message.

content
T

The content value to negotiate and format in the entity body.

Applies to