UpdatedODataResult<T> Constructor
Namespace: System.Web.Http.OData.Results
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
UpdatedODataResult<T>(T, ApiController) | Initializes a new instance of the UpdatedODataResult<T> class. |
|
UpdatedODataResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the UpdatedODataResult<T> class. |
See Also
UpdatedODataResult<T> Class
System.Web.Http.OData.Results Namespace
Return to top
UpdatedODataResult<T> Constructor (T, ApiController)
Initializes a new instance of the UpdatedODataResult<T> class.
Syntax
public UpdatedODataResult(
T entity,
ApiController controller
)
public:
UpdatedODataResult(
T entity,
ApiController^ controller
)
new :
entity:'T *
controller:ApiController -> UpdatedODataResult
Public Sub New (
entity As T,
controller As ApiController
)
Parameters
entity
Type: TThe updated entity.
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
Return to top
UpdatedODataResult<T> Constructor (T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)
Initializes a new instance of the UpdatedODataResult<T> class.
Syntax
public UpdatedODataResult(
T entity,
IContentNegotiator contentNegotiator,
HttpRequestMessage request,
IEnumerable<MediaTypeFormatter> formatters
)
public:
UpdatedODataResult(
T entity,
IContentNegotiator^ contentNegotiator,
HttpRequestMessage^ request,
IEnumerable<MediaTypeFormatter^>^ formatters
)
new :
entity:'T *
contentNegotiator:IContentNegotiator *
request:HttpRequestMessage *
formatters:IEnumerable<MediaTypeFormatter> -> UpdatedODataResult
Public Sub New (
entity As T,
contentNegotiator As IContentNegotiator,
request As HttpRequestMessage,
formatters As IEnumerable(Of MediaTypeFormatter)
)
Parameters
entity
Type: TThe updated 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.
Return to top