NegotiatedContentResult<T> Class
Represents an action result that performs content negotiation.
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.Results.NegotiatedContentResult<T>
Syntax
public class NegotiatedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class NegotiatedContentResult : IHttpActionResult
type NegotiatedContentResult<'T> =
class
interface IHttpActionResult
end
Public Class NegotiatedContentResult(Of T)
Implements IHttpActionResult
Type Parameters
- T
The type of content in the entity body.
Constructors
Name | Description | |
---|---|---|
NegotiatedContentResult<T>(HttpStatusCode, T, ApiController) | Initializes a new instance of the NegotiatedContentResult<T> class with the values provided. |
|
NegotiatedContentResult<T>(HttpStatusCode, T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the NegotiatedContentResult<T> class with the values provided. |
Properties
Name | Description | |
---|---|---|
Content | Gets the content value to negotiate and format in the entity body. |
|
ContentNegotiator | Gets the content negotiator to handle content negotiation. |
|
Formatters | Gets the formatters to use to negotiate and format the content. |
|
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) | Executes asynchronously an HTTP negotiated content results. |
|
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