UpdatedODataResult<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdatedODataResult<T>(T) |
Initializes a new instance of the UpdatedODataResult<T> class. |
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. |
UpdatedODataResult<T>(T)
Initializes a new instance of the UpdatedODataResult<T> class.
public UpdatedODataResult (T entity);
new Microsoft.AspNet.OData.Results.UpdatedODataResult<'T> : 'T -> Microsoft.AspNet.OData.Results.UpdatedODataResult<'T>
Public Sub New (entity As T)
Parameters
- entity
- T
The updated entity.
Applies to
UpdatedODataResult<T>(T, ApiController)
Initializes a new instance of the UpdatedODataResult<T> class.
public UpdatedODataResult (T entity, System.Web.Http.ApiController controller);
new Microsoft.AspNet.OData.Results.UpdatedODataResult<'T> : 'T * System.Web.Http.ApiController -> Microsoft.AspNet.OData.Results.UpdatedODataResult<'T>
Public Sub New (entity As T, controller As ApiController)
Parameters
- entity
- T
The updated entity.
- controller
- ApiController
The controller from which to obtain the dependencies needed for execution.
Applies to
UpdatedODataResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)
Initializes a new instance of the UpdatedODataResult<T> class.
public UpdatedODataResult (T entity, System.Net.Http.Formatting.IContentNegotiator contentNegotiator, System.Net.Http.HttpRequestMessage request, System.Collections.Generic.IEnumerable<System.Net.Http.Formatting.MediaTypeFormatter> formatters);
new Microsoft.AspNet.OData.Results.UpdatedODataResult<'T> : 'T * System.Net.Http.Formatting.IContentNegotiator * System.Net.Http.HttpRequestMessage * seq<System.Net.Http.Formatting.MediaTypeFormatter> -> Microsoft.AspNet.OData.Results.UpdatedODataResult<'T>
Public Sub New (entity As T, contentNegotiator As IContentNegotiator, request As HttpRequestMessage, formatters As IEnumerable(Of MediaTypeFormatter))
Parameters
- entity
- T
The updated entity.
- contentNegotiator
- IContentNegotiator
The content negotiator to handle content negotiation.
- request
- HttpRequestMessage
The request message which led to this result.
- formatters
- IEnumerable<System.Net.Http.Formatting.MediaTypeFormatter>
The formatters to use to negotiate and format the content.