Share via


DataServiceCollection<T>.LoadNextPartialSetAsync Method

Definition

Loads the next page of data into the collection.Supported only by the WCF Data Services 5.0 client for Silverlight.

public bool LoadNextPartialSetAsync ();
member this.LoadNextPartialSetAsync : unit -> bool
Public Function LoadNextPartialSetAsync () As Boolean

Returns

A Boolean value that is true when the Microsoft.OData.Client.DataServiceCollection has a continuation token; otherwise false.

Remarks

This method is the same as LoadAsync(IQueryable<T>) except that it runs the query as defined by the continuation token of this collection. The method returns immediately without waiting for the query to complete. Then it calls the handler of the LoadCompleted event exactly once on the UI thread. The event will be raised regradless if the query succeeded or not. Even if the method returns false, the event will be raised (immeditaly) This class only support one asynchronous operation in flight. If this collection doesn't have a continuation token (this.Continuation == null) then this method returns false and does not issue any request. If there is a continuation token the method will return true and will start a request to load the next partial set based on that continuation token.

Applies to