[]
        
(Showing Draft Content)

C1.Web.Api.C1ApiController.Content

Content Method

Content<T>(HttpStatusCode, T)

Creates a System.Web.Http.NegotiatedContentResult`1 with the specified values.

Declaration
protected override NegotiatedContentResult<T> Content<T>(HttpStatusCode statusCode, T value)
Parameters
Type Name Description
HttpStatusCode statusCode

The HTTP status code for the response message.

T value

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

Returns
Type Description
NegotiatedContentResult<T>

A System.Web.Http.NegotiatedContentResult`1 with the specified values.

Type Parameters
Name Description
T

The type of content in the entity body.