ODataSerializer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |