CreatedAtRouteNegotiatedContentResult<T> Class
Represents an action result that performs route generation and content negotiation and returns a Created response when content negotiation succeeds.
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult<T>
Syntax
public class CreatedAtRouteNegotiatedContentResult<T> : IHttpActionResult
generic<typename T>
public ref class CreatedAtRouteNegotiatedContentResult : IHttpActionResult
type CreatedAtRouteNegotiatedContentResult<'T> =
class
interface IHttpActionResult
end
Public Class CreatedAtRouteNegotiatedContentResult(Of T)
Implements IHttpActionResult
Type Parameters
- T
The type of content in the entity body.
Constructors
Name | Description | |
---|---|---|
CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, ApiController) | Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided. |
|
CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, UrlHelper, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<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. |
|
RouteName | Gets the name of the route to use for generating the URL. |
|
RouteValues | Gets the route data to use for generating the URL. |
|
UrlFactory | Gets the factory to use to generate the route URL. |
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