Partager via


ODataResourceDeserializer.CreateResourceInstance Méthode

Définition

Crée une instance de l’objet CLR de stockage pour le type de ressource donné.

public virtual object CreateResourceInstance (Microsoft.OData.Edm.IEdmStructuredTypeReference structuredType, Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext readContext);
abstract member CreateResourceInstance : Microsoft.OData.Edm.IEdmStructuredTypeReference * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> obj
override this.CreateResourceInstance : Microsoft.OData.Edm.IEdmStructuredTypeReference * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> obj
Public Overridable Function CreateResourceInstance (structuredType As IEdmStructuredTypeReference, readContext As ODataDeserializerContext) As Object

Paramètres

structuredType
IEdmStructuredTypeReference

Type EDM de la ressource à créer.

readContext
ODataDeserializerContext

Contexte du désérialiseur.

Retours

L'objet CLR créé.

S’applique à