Share via


ODataPrimitiveSerializer.CreateODataPrimitiveValue Method (Object, IEdmPrimitiveTypeReference, ODataSerializerContext)

 

Creates an ODataPrimitiveValue 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 ODataPrimitiveValue CreateODataPrimitiveValue(
    object graph,
    IEdmPrimitiveTypeReference primitiveType,
    ODataSerializerContext writeContext
)
public:
virtual ODataPrimitiveValue^ CreateODataPrimitiveValue(
    Object^ graph,
    IEdmPrimitiveTypeReference^ primitiveType,
    ODataSerializerContext^ writeContext
)
abstract CreateODataPrimitiveValue : 
        graph:Object *
        primitiveType:IEdmPrimitiveTypeReference *
        writeContext:ODataSerializerContext -> ODataPrimitiveValue
override CreateODataPrimitiveValue : 
        graph:Object *
        primitiveType:IEdmPrimitiveTypeReference *
        writeContext:ODataSerializerContext -> ODataPrimitiveValue
Public Overridable Function CreateODataPrimitiveValue (
    graph As Object,
    primitiveType As IEdmPrimitiveTypeReference,
    writeContext As ODataSerializerContext
) As ODataPrimitiveValue

Parameters

Return Value

Type: Microsoft.Data.OData.ODataPrimitiveValue

The created ODataPrimitiveValue.

See Also

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

Return to top