Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceCollection<T>::Continuation Property

 

Gets a continuation object that is used to return the next set of paged results.

Namespace:   System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

public:
property DataServiceQueryContinuation<T>^ Continuation {
	DataServiceQueryContinuation<T>^ get();
	void set(DataServiceQueryContinuation<T>^ value);
}

Property Value

Type: System.Data.Services.Client::DataServiceQueryContinuation<T>^

A DataServiceQueryContinuation<T> object that contains the URI to return the next set of paged results.

The Continuation property returns a link that is used to access the next set of paged results when paging is enabled in the data service. For more information, see Configuring the Data Service (WCF Data Services).

When loading a paged result into a DataServiceCollection<T>, you must explicitly load pages by calling the Load(IEnumerable<T>^) method on the DataServiceCollection<T> by passing the result of the execution of the URI that was obtained from the Continuation property.

The following example is from the code-behind page for an Extensible Application Markup Language (XAML) page that defines the SalesOrders window in WPF. When the window is loaded, a DataServiceCollection<T> is created based on the result of a query that returns customers, filtered by country. All of the pages of this paged result are loaded, along with the related orders, and are bound to the DataContext property of the StackPanel that is the root layout control for the WPF window. For more information, see How to: Bind Data to Windows Presentation Foundation Elements (WCF Data Services).

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft