Share via


CreatedODataResult<T> Constructor

 

Namespace:   System.Web.Http.OData.Results
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod CreatedODataResult<T>(T, ApiController)

Initializes a new instance of the CreatedODataResult<T> class.

System_CAPS_pubmethod 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: T

    The created entity.

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.

  • locationHeader
    Type: System.Uri

    The location header for the created entity.

Return to top