ODataCollectionSerializer Class

 

ODataSerializer for serializing collection of Entities or Complex types or primitives.

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

Inheritance Hierarchy

System.Object
  System.Web.OData.Formatter.Serialization.ODataSerializer
    System.Web.OData.Formatter.Serialization.ODataEdmTypeSerializer
      System.Web.OData.Formatter.Serialization.ODataCollectionSerializer

Syntax

public class ODataCollectionSerializer : ODataEdmTypeSerializer
public ref class ODataCollectionSerializer : ODataEdmTypeSerializer
type ODataCollectionSerializer = 
    class
        inherit ODataEdmTypeSerializer
    end
Public Class ODataCollectionSerializer
    Inherits ODataEdmTypeSerializer

Constructors

Name Description
System_CAPS_pubmethod ODataCollectionSerializer(ODataSerializerProvider)

Initializes a new instance of the ODataCollectionSerializer class.

Properties

Name Description
System_CAPS_pubproperty ODataPayloadKind

Gets the ODataPayloadKind that this serializer generates. (Inherited from ODataSerializer.)

System_CAPS_pubproperty SerializerProvider

Gets the ODataSerializerProvider that can be used to write inner objects. (Inherited from ODataEdmTypeSerializer.)

Methods

Name Description
System_CAPS_protmethodSystem_CAPS_static AddTypeNameAnnotationAsNeeded(ODataCollectionValue, ODataMetadataLevel)

Adds the type name annotations required for proper json light serialization.

System_CAPS_pubmethod CreateODataCollectionValue(IEnumerable, IEdmTypeReference, ODataSerializerContext)

Creates an ODataCollectionValue for the enumerable represented by enumerable.

System_CAPS_pubmethod CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext)

(Overrides ODataEdmTypeSerializer.CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod WriteCollection(ODataCollectionWriter, Object, IEdmTypeReference, ODataSerializerContext)

Writes the given graph using the given writer.

System_CAPS_pubmethod WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext)

(Overrides ODataSerializer.WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext).)

System_CAPS_pubmethod WriteObjectInline(Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)

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.)

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

System.Web.OData.Formatter.Serialization Namespace

Return to top