Share via


ODataResourceDeserializer.CreateResourceInstance Method

Definition

Creates a new instance of the backing CLR object for the given resource type.

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

Parameters

structuredType
IEdmStructuredTypeReference

The EDM type of the resource to create.

readContext
ODataDeserializerContext

The deserializer context.

Returns

The created CLR object.

Applies to