DataServiceContext.LoadPropertyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoadPropertyAsync(Object, String, Uri, CancellationToken) |
Asynchronously loads a page of related entities from the data service by using the supplied next link URI. |
LoadPropertyAsync(Object, String, Uri) |
Asynchronously loads a page of related entities from the data service by using the supplied next link URI. |
LoadPropertyAsync(Object, String, DataServiceQueryContinuation, CancellationToken) |
Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object. |
LoadPropertyAsync(Object, String, CancellationToken) |
Asynchronously loads the value of the specified property from the data service. |
LoadPropertyAsync(Object, String) |
Asynchronously loads the value of the specified property from the data service. |
LoadPropertyAsync(Object, String, DataServiceQueryContinuation) |
Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object. |
LoadPropertyAsync(Object, String, Uri, CancellationToken)
Asynchronously loads a page of related entities from the data service by using the supplied next link URI.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName, Uri nextLinkUri, System.Threading.CancellationToken cancellationToken);
abstract member LoadPropertyAsync : obj * string * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String, nextLinkUri As Uri, cancellationToken As CancellationToken) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
- nextLinkUri
- Uri
The URI used to load the next results page.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the response to the load operation.
Applies to
LoadPropertyAsync(Object, String, Uri)
Asynchronously loads a page of related entities from the data service by using the supplied next link URI.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName, Uri nextLinkUri);
abstract member LoadPropertyAsync : obj * string * Uri -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string * Uri -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String, nextLinkUri As Uri) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
- nextLinkUri
- Uri
The URI used to load the next results page.
Returns
A task that represents the response to the load operation.
Applies to
LoadPropertyAsync(Object, String, DataServiceQueryContinuation, CancellationToken)
Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName, Microsoft.OData.Client.DataServiceQueryContinuation continuation, System.Threading.CancellationToken cancellationToken);
abstract member LoadPropertyAsync : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String, continuation As DataServiceQueryContinuation, cancellationToken As CancellationToken) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
- continuation
- DataServiceQueryContinuation
A DataServiceQueryContinuation<T> object that represents the next page of related entity data to return from the data service.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A Task that represents the response to the load operation.
Applies to
LoadPropertyAsync(Object, String, CancellationToken)
Asynchronously loads the value of the specified property from the data service.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName, System.Threading.CancellationToken cancellationToken);
abstract member LoadPropertyAsync : obj * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String, cancellationToken As CancellationToken) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the response to the load operation.
Applies to
LoadPropertyAsync(Object, String)
Asynchronously loads the value of the specified property from the data service.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName);
abstract member LoadPropertyAsync : obj * string -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
Returns
A task that represents the response to the load operation.
Applies to
LoadPropertyAsync(Object, String, DataServiceQueryContinuation)
Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object.
public virtual System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse> LoadPropertyAsync (object entity, string propertyName, Microsoft.OData.Client.DataServiceQueryContinuation continuation);
abstract member LoadPropertyAsync : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
override this.LoadPropertyAsync : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation -> System.Threading.Tasks.Task<Microsoft.OData.Client.QueryOperationResponse>
Public Overridable Function LoadPropertyAsync (entity As Object, propertyName As String, continuation As DataServiceQueryContinuation) As Task(Of QueryOperationResponse)
Parameters
- entity
- Object
The entity that contains the property to load.
- propertyName
- String
The name of the property on the specified entity to load.
- continuation
- DataServiceQueryContinuation
A DataServiceQueryContinuation<T> object that represents the next page of related entity data to return from the data service.
Returns
A Task that represents the response to the load operation.