Partager via


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
System_CAPS_pubmethod CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, ApiController)

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

System_CAPS_pubmethod 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
System_CAPS_pubproperty Content

Gets the content value to negotiate and format in the entity body.

System_CAPS_pubproperty ContentNegotiator

Gets the content negotiator to handle content negotiation.

System_CAPS_pubproperty Formatters

Gets the formatters to use to negotiate and format the content.

System_CAPS_pubproperty Request

Gets the request message which led to this result.

System_CAPS_pubproperty RouteName

Gets the name of the route to use for generating the URL.

System_CAPS_pubproperty RouteValues

Gets the route data to use for generating the URL.

System_CAPS_pubproperty UrlFactory

Gets the factory to use to generate the route URL.

Methods

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