Partager via


ODataPrimitiveSerializer.CreateODataPrimitiveValue Méthode

Définition

Crée un ODataPrimitiveValue pour l’objet représenté par 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

Paramètres

graph
Object

Valeur primitive.

primitiveType
IEdmPrimitiveTypeReference

Type EDM primitif de la valeur.

writeContext
ODataSerializerContext

Contexte d'écriture du sérialiseur.

Retours

Élément ODataPrimitiveValue créé.

S’applique à