Share via


ODataPrimitiveDeserializer.ReadPrimitive Method

Definition

Deserializes the primitive from the given primitiveProperty under the given readContext.

public virtual object ReadPrimitive (Microsoft.OData.ODataProperty primitiveProperty, Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext readContext);
abstract member ReadPrimitive : Microsoft.OData.ODataProperty * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> obj
override this.ReadPrimitive : Microsoft.OData.ODataProperty * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> obj
Public Overridable Function ReadPrimitive (primitiveProperty As ODataProperty, readContext As ODataDeserializerContext) As Object

Parameters

primitiveProperty
ODataProperty

The primitive property to deserialize.

readContext
ODataDeserializerContext

The deserializer context.

Returns

The deserialized OData primitive value.

Applies to