ODataSerializer Class

 

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

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


public ref class ODataSerializer abstract 

NameDescription
System_CAPS_protmethodODataSerializer(ODataPayloadKind)

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

NameDescription
System_CAPS_pubpropertyODataPayloadKind

Gets the ODataPayloadKind that this serializer generates.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWriteObject(Object^, Type^, ODataMessageWriter^, ODataSerializerContext^)

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

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.

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

Return to top
Show: