Share via


ODataDeserializer.ReadAsync Method

Definition

Reads an IODataRequestMessage using messageReader.

public virtual System.Threading.Tasks.Task<object> ReadAsync (Microsoft.OData.ODataMessageReader messageReader, Type type, Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext readContext);
abstract member ReadAsync : Microsoft.OData.ODataMessageReader * Type * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> System.Threading.Tasks.Task<obj>
override this.ReadAsync : Microsoft.OData.ODataMessageReader * Type * Microsoft.AspNet.OData.Formatter.Deserialization.ODataDeserializerContext -> System.Threading.Tasks.Task<obj>
Public Overridable Function ReadAsync (messageReader As ODataMessageReader, type As Type, readContext As ODataDeserializerContext) As Task(Of Object)

Parameters

messageReader
ODataMessageReader

The messageReader to use.

type
Type

The type of the object to read into.

readContext
ODataDeserializerContext

The read context.

Returns

The deserialized object.

Applies to