Share via


ODataEnumSerializer Class

Definition

Represents an ODataSerializer for serializing IEdmEnumType's.

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

Constructors

ODataEnumSerializer(ODataSerializerProvider)

Initializes a new instance of ODataEnumSerializer.

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

CreateODataEnumValue(Object, IEdmEnumTypeReference, ODataSerializerContext)

Creates an ODataEnumValue for the object represented by graph.

CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext)

Creates an ODataValue for the object represented by graph.

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