Namespace:   System.Web.Http.OData.Results
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
![]()  | 
CreatedODataResult<T>(T, ApiController) | Initializes a new instance of the CreatedODataResult<T> class.  | 
![]()  | 
CreatedODataResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>, Uri) | Initializes a new instance of the CreatedODataResult<T> class.  | 
See Also
CreatedODataResult<T> Class
System.Web.Http.OData.Results Namespace
Return to top
CreatedODataResult<T> Constructor (T, ApiController)
Initializes a new instance of the CreatedODataResult<T> class.
Syntax
public CreatedODataResult(
    T entity,
    ApiController controller
)
public:
CreatedODataResult(
    T entity,
    ApiController^ controller
)
new : 
        entity:'T *
        controller:ApiController -> CreatedODataResult
Public Sub New (
    entity As T,
    controller As ApiController
)
Parameters
entity
Type: TThe created entity.
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
Return to top
CreatedODataResult<T> Constructor (T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>, Uri)
Initializes a new instance of the CreatedODataResult<T> class.
Syntax
public CreatedODataResult(
    T entity,
    IContentNegotiator contentNegotiator,
    HttpRequestMessage request,
    IEnumerable<MediaTypeFormatter> formatters,
    Uri locationHeader
)
public:
CreatedODataResult(
    T entity,
    IContentNegotiator^ contentNegotiator,
    HttpRequestMessage^ request,
    IEnumerable<MediaTypeFormatter^>^ formatters,
    Uri^ locationHeader
)
new : 
        entity:'T *
        contentNegotiator:IContentNegotiator *
        request:HttpRequestMessage *
        formatters:IEnumerable<MediaTypeFormatter> *
        locationHeader:Uri -> CreatedODataResult
Public Sub New (
    entity As T,
    contentNegotiator As IContentNegotiator,
    request As HttpRequestMessage,
    formatters As IEnumerable(Of MediaTypeFormatter),
    locationHeader As Uri
)
Parameters
entity
Type: TThe created entity.
contentNegotiator
Type: System.Net.Http.Formatting.IContentNegotiatorThe content negotiator to handle content negotiation.
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
formatters
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>The formatters to use to negotiate and format the content.
locationHeader
Type: System.UriThe location header for the created entity.
Return to top
.jpeg)