Udostępnij za pośrednictwem


ODataMessageReader.ReadValueAsync Method

Asynchronously reads a single value as the message body.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Function ReadValueAsync ( _
    expectedTypeReference As IEdmTypeReference _
) As Task(Of Object)
'Usage
Dim instance As ODataMessageReader 
Dim expectedTypeReference As IEdmTypeReference 
Dim returnValue As Task(Of Object)

returnValue = instance.ReadValueAsync(expectedTypeReference)
public Task<Object> ReadValueAsync(
    IEdmTypeReference expectedTypeReference
)
public:
Task<Object^>^ ReadValueAsync(
    IEdmTypeReference^ expectedTypeReference
)
member ReadValueAsync : 
        expectedTypeReference:IEdmTypeReference -> Task<Object> 
public function ReadValueAsync(
    expectedTypeReference : IEdmTypeReference
) : Task<Object>

Parameters

Return Value

Type: System.Threading.Tasks.Task<Object>
A running task representing the reading of the value.

See Also

Reference

ODataMessageReader Class

Microsoft.Data.OData Namespace