Share via


ODataInputContext.ReadPropertyAsync Method

Definition

Asynchronously read the EDM structural property from the input and return an ODataProperty representing the read property.

public virtual System.Threading.Tasks.Task<Microsoft.OData.ODataProperty> ReadPropertyAsync (Microsoft.OData.Edm.IEdmStructuralProperty edmStructuralProperty, Microsoft.OData.Edm.IEdmTypeReference expectedPropertyTypeReference);
abstract member ReadPropertyAsync : Microsoft.OData.Edm.IEdmStructuralProperty * Microsoft.OData.Edm.IEdmTypeReference -> System.Threading.Tasks.Task<Microsoft.OData.ODataProperty>
override this.ReadPropertyAsync : Microsoft.OData.Edm.IEdmStructuralProperty * Microsoft.OData.Edm.IEdmTypeReference -> System.Threading.Tasks.Task<Microsoft.OData.ODataProperty>
Public Overridable Function ReadPropertyAsync (edmStructuralProperty As IEdmStructuralProperty, expectedPropertyTypeReference As IEdmTypeReference) As Task(Of ODataProperty)

Parameters

edmStructuralProperty
IEdmStructuralProperty

The IEdmProperty producing the property to be read.

expectedPropertyTypeReference
IEdmTypeReference

The expected type reference of the property to read.

Returns

Task which when completed returns an ODataProperty representing the read property.

Applies to