Share via


ODataPrimitiveSerializer.CreateODataValue Method

This member overrides ODataEdmTypeSerializer.CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext).

Namespace:  System.Web.Http.OData.Formatter.Serialization
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Overrides NotOverridable Function CreateODataValue ( _
    graph As Object, _
    expectedType As IEdmTypeReference, _
    writeContext As ODataSerializerContext _
) As ODataValue
'Usage
Dim instance As ODataPrimitiveSerializer 
Dim graph As Object 
Dim expectedType As IEdmTypeReference 
Dim writeContext As ODataSerializerContext 
Dim returnValue As ODataValue 

returnValue = instance.CreateODataValue(graph, _
    expectedType, writeContext)
public override sealed ODataValue CreateODataValue(
    Object graph,
    IEdmTypeReference expectedType,
    ODataSerializerContext writeContext
)
public:
virtual ODataValue^ CreateODataValue(
    Object^ graph, 
    IEdmTypeReference^ expectedType, 
    ODataSerializerContext^ writeContext
) override sealed
abstract CreateODataValue : 
        graph:Object * 
        expectedType:IEdmTypeReference * 
        writeContext:ODataSerializerContext -> ODataValue  
override CreateODataValue : 
        graph:Object * 
        expectedType:IEdmTypeReference * 
        writeContext:ODataSerializerContext -> ODataValue
public override final function CreateODataValue(
    graph : Object, 
    expectedType : IEdmTypeReference, 
    writeContext : ODataSerializerContext
) : ODataValue

Parameters

  • expectedType
    Type: IEdmTypeReference

Return Value

Type: ODataValue

See Also

Reference

ODataPrimitiveSerializer Class

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