Share via


ODataEnumSerializer Class

 

Represents an ODataSerializer for serializing IEdmEnumType's.

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

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod ODataEnumSerializer()

Initializes a new instance of ODataEnumSerializer.

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_pubmethod CreateODataEnumValue(Object, IEdmEnumTypeReference, ODataSerializerContext)

Creates an ODataEnumValue for the object represented by graph.

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