Compartir a través de


ODataEnumSerializer.CreateODataEnumValue Método

Definición

Crea un ODataEnumValue objeto para el objeto representado por 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

Parámetros

graph
Object

El valor enum.

enumType
IEdmEnumTypeReference

El tipo enum EDM del valor.

writeContext
ODataSerializerContext

El contexto de escritura del serializador.

Devoluciones

Objeto ODataEnumValue creado.

Se aplica a