Share via


ODataResourceValueSerializer.CreateODataValue Method

Definition

Creates an ODataValue for the object represented by graph.

public override sealed Microsoft.OData.ODataValue CreateODataValue (object graph, Microsoft.OData.Edm.IEdmTypeReference expectedType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
override this.CreateODataValue : obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataValue
Public Overrides NotOverridable Function CreateODataValue (graph As Object, expectedType As IEdmTypeReference, writeContext As ODataSerializerContext) As ODataValue

Parameters

graph
Object

The value of the ODataValue to be created.

expectedType
IEdmTypeReference

The expected EDM type of the object represented by graph.

Returns

The ODataValue created.

Applies to