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
System.Object
System.Web.Http.Results.FormattedContentResult<T>
Syntax
public class FormattedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class FormattedContentResult : IHttpActionResult
type FormattedContentResult<'T> =
class
interface IHttpActionResult
end
Public Class FormattedContentResult(Of T)
Implements IHttpActionResult
Type Parameters
- T
The type of content in the entity body.
Constructors
Name | Description | |
---|---|---|
FormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue, ApiController) | Initializes a new instance of the FormattedContentResult<T> class with the values provided. |
|
FormattedContentResult<T>(HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue, HttpRequestMessage) | Initializes a new instance of the FormattedContentResult<T> class with the values provided. |
Properties
Name | Description | |
---|---|---|
Content | Gets the content value to format in the entity body. |
|
Formatter | Gets the formatter to use to format the content. |
|
MediaType | Gets the value for the Content-Type header, or null to have the formatter pick a default value. |
|
Request | Gets the request message which led to this result. |
|
StatusCode | Gets the HTTP status code for the response message. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecuteAsync(CancellationToken) | ||
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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