ODataModelBinderConverter.Convert Method
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.
Convert an OData value into a CLR object.
public static object Convert (object graph, Microsoft.OData.Edm.IEdmTypeReference edmTypeReference, Type clrType, string parameterName, Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext readContext, IServiceProvider requestContainer);
static member Convert : obj * Microsoft.OData.Edm.IEdmTypeReference * Type * string * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext * IServiceProvider -> obj
Public Shared Function Convert (graph As Object, edmTypeReference As IEdmTypeReference, clrType As Type, parameterName As String, readContext As ODataDeserializerContext, requestContainer As IServiceProvider) As Object
Parameters
- graph
- Object
The given object.
- edmTypeReference
- IEdmTypeReference
The EDM type of the given object.
- clrType
- Type
The CLR type of the given object.
- parameterName
- String
The parameter name of the given object.
- readContext
- ODataDeserializerContext
The ODataDeserializerContext use to convert.
- requestContainer
- IServiceProvider
The dependency injection container for the request.
Returns
The converted object.