Share via


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

Return Value

Type: Microsoft.Data.OData.ODataValue

The ODataValue created.

See Also

ODataEdmTypeSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace

Return to top