CreatedNegotiatedContentResult<T> Class
Represents an action result that performs content negotiation and returns a Created response when it succeeds.
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.Results.CreatedNegotiatedContentResult<T>
Syntax
public class CreatedNegotiatedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class CreatedNegotiatedContentResult : IHttpActionResult
type CreatedNegotiatedContentResult<'T> =
class
interface IHttpActionResult
end
Public Class CreatedNegotiatedContentResult(Of T)
Implements IHttpActionResult
Type Parameters
- T
The type of content in the entity body.
Constructors
Name | Description | |
---|---|---|
CreatedNegotiatedContentResult<T>(Uri, T, ApiController) | Initializes a new instance of the CreatedNegotiatedContentResult<T> class with the values provided. |
|
CreatedNegotiatedContentResult<T>(Uri, T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the OkNegotiatedContentResult<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. |
|
Location | Gets the location at which the content has been created. |
|
Request | Gets the request message which led to this result. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecuteAsync(CancellationToken) | Executes asynchronously the operation of the created negotiated content result. |
|
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