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
- expectedTypeReference
Type: Microsoft.Data.Edm.IEdmTypeReference
The expected resource type for the value to be read; null if no expected type is available.
Return Value
Type: System.Threading.Tasks.Task<Object>
A running task representing the reading of the value.