Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormattedContentResult<T> Class

 

Represents an action result that returns formatted content.

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

System::Object
  System.Web.Http.Results::FormattedContentResult<T>

generic<typename T>
public ref class FormattedContentResult : IHttpActionResult

Type Parameters

T

The type of content in the entity body.

NameDescription
System_CAPS_pubmethodFormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter^, MediaTypeHeaderValue^, ApiController^)

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

System_CAPS_pubmethodFormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter^, MediaTypeHeaderValue^, HttpRequestMessage^)

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

NameDescription
System_CAPS_pubpropertyContent

Gets the content value to format in the entity body.

System_CAPS_pubpropertyFormatter

Gets the formatter to use to format the content.

System_CAPS_pubpropertyMediaType

Gets the value for the Content-Type header, or null to have the formatter pick a default value.

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)

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: