Share via


ODataCollectionSerializer Class

Definition

ODataSerializer for serializing collection of primitive or enum types.

public class ODataCollectionSerializer : Microsoft.AspNet.OData.Formatter.Serialization.ODataEdmTypeSerializer
type ODataCollectionSerializer = class
    inherit ODataEdmTypeSerializer
Public Class ODataCollectionSerializer
Inherits ODataEdmTypeSerializer
Inheritance
ODataCollectionSerializer

Constructors

ODataCollectionSerializer(ODataSerializerProvider, Boolean)

Initializes a new instance of the ODataCollectionSerializer class.

ODataCollectionSerializer(ODataSerializerProvider)

Initializes a new instance of the ODataCollectionSerializer class.

Properties

ODataPayloadKind

Gets the ODataPayloadKind that this serializer generates.

(Inherited from ODataSerializer)
SerializerProvider

Gets the ODataSerializerProvider that can be used to write inner objects.

(Inherited from ODataEdmTypeSerializer)

Methods

AddTypeNameAnnotationAsNeeded(ODataCollectionValue, ODataMetadataLevel)

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

CreateODataCollectionValue(IEnumerable, IEdmTypeReference, ODataSerializerContext)

Creates an ODataCollectionValue for the enumerable represented by enumerable.

CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext)

Creates an ODataValue for the object represented by graph.

WriteCollection(ODataCollectionWriter, Object, IEdmTypeReference, ODataSerializerContext)

Writes the given graph using the given writer.

WriteCollectionAsync(ODataCollectionWriter, Object, IEdmTypeReference, ODataSerializerContext)

Writes the given graph using the given writer.

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.

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)
WriteObjectInlineAsync(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)

Applies to