Share via


ODataSerializer Class

Definition

An ODataSerializer is used to write a CLR object to an ODataMessage.

public abstract class ODataSerializer
type ODataSerializer = class
Public MustInherit Class ODataSerializer
Inheritance
ODataSerializer
Derived

Remarks

Each supported CLR type has a corresponding ODataSerializer. A CLR type is supported if it is one of the special types or if it has a backing EDM type. Some of the special types are Uri which maps to ODataReferenceLink payload, Uri[] which maps to ODataReferenceLinks payload, ODataWorkspace which maps to ODataServiceDocument payload.

Constructors

ODataSerializer(ODataPayloadKind)

Constructs an ODataSerializer that can generate OData payload of the specified kind.

Properties

ODataPayloadKind

Gets the ODataPayloadKind that this serializer generates.

Methods

WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.

WriteObjectAsync(Object, Type, ODataMessageWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.

Applies to