ODataEdmTypeSerializer.CreateODataValue Method (Object, IEdmTypeReference, ODataSerializerContext)
Creates an ODataValue for the object represented by graph.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual ODataValue CreateODataValue(
object graph,
IEdmTypeReference expectedType,
ODataSerializerContext writeContext
)
public:
virtual ODataValue^ CreateODataValue(
Object^ graph,
IEdmTypeReference^ expectedType,
ODataSerializerContext^ writeContext
)
abstract CreateODataValue :
graph:Object *
expectedType:IEdmTypeReference *
writeContext:ODataSerializerContext -> ODataValue
override CreateODataValue :
graph:Object *
expectedType:IEdmTypeReference *
writeContext:ODataSerializerContext -> ODataValue
Public Overridable Function CreateODataValue (
graph As Object,
expectedType As IEdmTypeReference,
writeContext As ODataSerializerContext
) As ODataValue
Parameters
graph
Type: System.ObjectThe value of the ODataValue to be created.
expectedType
Type: Microsoft.Data.Edm.IEdmTypeReferenceThe expected EDM type of the object represented by graph.
writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
Return Value
Type: Microsoft.Data.OData.ODataValue
The ODataValue created.
See Also
ODataEdmTypeSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top