Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace:   System.Web.OData.Results
Assembly:  System.Web.OData (in System.Web.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
| .jpeg) | CreatedODataResult<T>(T, ApiController) | Initializes a new instance of the CreatedODataResult<T> class. | 
| .jpeg) | CreatedODataResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>, Uri) | Initializes a new instance of the CreatedODataResult<T> class. | 
See Also
CreatedODataResult<T> Class
System.Web.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: T- The created entity. 
- controller 
 Type: System.Web.Http.ApiController- The 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: T- The created entity. 
- contentNegotiator 
 Type: System.Net.Http.Formatting.IContentNegotiator- The content negotiator to handle content negotiation. 
- request 
 Type: System.Net.Http.HttpRequestMessage- The 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.Uri- The location header for the created entity. 
Return to top