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)

Inheritance Hierarchy



public class FormattedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class FormattedContentResult : IHttpActionResult
type FormattedContentResult<'T> = 
        interface IHttpActionResult
Public Class FormattedContentResult(Of T)
    Implements IHttpActionResult

Type Parameters

  • T
    The type of content in the entity body.


Name Description
System_CAPS_pubmethod FormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue, ApiController)

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

System_CAPS_pubmethod FormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue, HttpRequestMessage)

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


Name Description
System_CAPS_pubproperty Content

Gets the content value to format in the entity body.

System_CAPS_pubproperty Formatter

Gets the formatter to use to format the content.

System_CAPS_pubproperty MediaType

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

System_CAPS_pubproperty Request

Gets the request message which led to this result.

System_CAPS_pubproperty StatusCode

Gets the HTTP status code for the response message.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecuteAsync(CancellationToken)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.Results Namespace

Return to top