Share via


ODataPrimitiveSerializer Class

Represents an ODataSerializer for serializing IEdmPrimitiveType's.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Formatter.Serialization.ODataSerializer
    System.Web.Http.OData.Formatter.Serialization.ODataEdmTypeSerializer
      System.Web.Http.OData.Formatter.Serialization.ODataPrimitiveSerializer

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

Syntax

'Declaration
Public Class ODataPrimitiveSerializer _
    Inherits ODataEdmTypeSerializer
'Usage
Dim instance As ODataPrimitiveSerializer
public class ODataPrimitiveSerializer : ODataEdmTypeSerializer
public ref class ODataPrimitiveSerializer : public ODataEdmTypeSerializer
type ODataPrimitiveSerializer =  
    class 
        inherit ODataEdmTypeSerializer 
    end
public class ODataPrimitiveSerializer extends ODataEdmTypeSerializer

The ODataPrimitiveSerializer type exposes the following members.

Constructors

  Name Description
Public method ODataPrimitiveSerializer Initializes a new instance of ODataPrimitiveSerializer.

Top

Properties

  Name Description
Public property ODataPayloadKind Gets the ODataPayloadKind that this serializer generates. (Inherited from ODataSerializer.)
Public property SerializerProvider Gets the ODataSerializerProvider that can be used to write inner objects. (Inherited from ODataEdmTypeSerializer.)

Top

Methods

  Name Description
Public method CreateODataPrimitiveValue Creates an ODataPrimitiveValue for the object represented by graph.
Public method CreateODataValue (Overrides ODataEdmTypeSerializer.CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext).)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method WriteObject (Overrides ODataSerializer.WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext).)
Public method WriteObjectInline Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext. (Inherited from ODataEdmTypeSerializer.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

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