Share via


ODataEnumSerializer.CreateODataEnumValue Method

Definition

Creates an ODataEnumValue for the object represented by graph.

public virtual Microsoft.OData.ODataEnumValue CreateODataEnumValue (object graph, Microsoft.OData.Edm.IEdmEnumTypeReference enumType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateODataEnumValue : obj * Microsoft.OData.Edm.IEdmEnumTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataEnumValue
override this.CreateODataEnumValue : obj * Microsoft.OData.Edm.IEdmEnumTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataEnumValue
Public Overridable Function CreateODataEnumValue (graph As Object, enumType As IEdmEnumTypeReference, writeContext As ODataSerializerContext) As ODataEnumValue

Parameters

graph
Object

The enum value.

enumType
IEdmEnumTypeReference

The EDM enum type of the value.

writeContext
ODataSerializerContext

The serializer write context.

Returns

The created ODataEnumValue.

Applies to