ODataMessageReader.ReadPropertyAsync Method (IEdmTypeReference)
Asynchronously reads an ODataProperty as message payload.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Function ReadPropertyAsync ( _
expectedPropertyTypeReference As IEdmTypeReference _
) As Task(Of ODataProperty)
'Usage
Dim instance As ODataMessageReader
Dim expectedPropertyTypeReference As IEdmTypeReference
Dim returnValue As Task(Of ODataProperty)
returnValue = instance.ReadPropertyAsync(expectedPropertyTypeReference)
public Task<ODataProperty> ReadPropertyAsync(
IEdmTypeReference expectedPropertyTypeReference
)
public:
Task<ODataProperty^>^ ReadPropertyAsync(
IEdmTypeReference^ expectedPropertyTypeReference
)
member ReadPropertyAsync :
expectedPropertyTypeReference:IEdmTypeReference -> Task<ODataProperty>
public function ReadPropertyAsync(
expectedPropertyTypeReference : IEdmTypeReference
) : Task<ODataProperty>
Parameters
- expectedPropertyTypeReference
Type: Microsoft.Data.Edm.IEdmTypeReference
The expected resource type of the property to read.
Return Value
Type: System.Threading.Tasks.Task<ODataProperty>
A task representing the asynchronous operation of reading the property.