Share via


ODataResourceDeserializer.ReadResource Method

Definition

Deserializes the given resourceWrapper under the given readContext.

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

Parameters

resourceWrapper
ODataResourceWrapper

The OData resource to deserialize.

structuredType
IEdmStructuredTypeReference

The type of the resource to deserialize.

readContext
ODataDeserializerContext

The deserializer context.

Returns

The deserialized resource.

Applies to