Compartilhar via


ODataEnumSerializer.CreateODataEnumValue Método

Definição

Cria um ODataEnumValue para o 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

O valor de enumeração.

enumType
IEdmEnumTypeReference

O tipo de enumeração de EDM do valor.

writeContext
ODataSerializerContext

O contexto de gravação do serializador.

Retornos

O ODataEnumValue criado.

Aplica-se a