Compartir a través de


ODataPrimitiveSerializer.CreateODataPrimitiveValue Método

Definición

Crea un ODataPrimitiveValue objeto para el objeto representado por graph.

public virtual Microsoft.OData.ODataPrimitiveValue CreateODataPrimitiveValue (object graph, Microsoft.OData.Edm.IEdmPrimitiveTypeReference primitiveType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateODataPrimitiveValue : obj * Microsoft.OData.Edm.IEdmPrimitiveTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataPrimitiveValue
override this.CreateODataPrimitiveValue : obj * Microsoft.OData.Edm.IEdmPrimitiveTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataPrimitiveValue
Public Overridable Function CreateODataPrimitiveValue (graph As Object, primitiveType As IEdmPrimitiveTypeReference, writeContext As ODataSerializerContext) As ODataPrimitiveValue

Parámetros

graph
Object

El valor primitivo.

primitiveType
IEdmPrimitiveTypeReference

El tipo primitivo de EDM del valor.

writeContext
ODataSerializerContext

El contexto de escritura del serializador.

Devoluciones

Objeto ODataPrimitiveValue creado.

Se aplica a