DataServiceCollection<'T>.Continuation Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

member Continuation : DataServiceQueryContinuation<'T> with get, set

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: