ODataResourceDeserializer.CreateResourceInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.