Share via


DataServiceCollection<T> Class

Definition

Represents a dynamic entity collection that provides notifications when items get added, removed, or when the list is refreshed.

public class DataServiceCollection<T> : System.Collections.ObjectModel.ObservableCollection<T>
type DataServiceCollection<'T> = class
    inherit ObservableCollection<'T>
Public Class DataServiceCollection(Of T)
Inherits ObservableCollection(Of T)

Type Parameters

T

An entity type.

Inheritance
DataServiceCollection<T>

Constructors

DataServiceCollection<T>()

Initializes a new instance of the DataServiceCollection<T> class.

DataServiceCollection<T>(DataServiceContext, IEnumerable<T>, TrackingMode, String, Func<EntityChangedParams,Boolean>, Func<EntityCollectionChangedParams, Boolean>)

Initializes a new instance of the DataServiceCollection<T> class based on query execution, with the supplied change method delegates, and that uses the supplied DataServiceContext.

DataServiceCollection<T>(DataServiceContext, String, Func<EntityChangedParams,Boolean>, Func<EntityCollectionChangedParams,Boolean>)

Initializes a new instance of the DataServiceCollection<T> class with the supplied change method delegates and that uses the specified DataServiceContext.

DataServiceCollection<T>(DataServiceContext)

Initializes a new instance of the DataServiceCollection<T> class that uses the specified DataServiceContext.

DataServiceCollection<T>(DataServiceQuerySingle<T>)

Initializes a new instance of the DataServiceCollection<T> class based on query execution.

DataServiceCollection<T>(IEnumerable<T>, TrackingMode, String, Func<EntityChangedParams,Boolean>, Func<EntityCollectionChangedParams,Boolean>)

Initializes a new instance of the DataServiceCollection<T> class based on query execution and with the supplied change method delegates.

DataServiceCollection<T>(IEnumerable<T>, TrackingMode)

Initializes a new instance of the DataServiceCollection<T> class based on query execution and with the specified tracking mode.

DataServiceCollection<T>(IEnumerable<T>)

Initializes a new instance of the DataServiceCollection<T> class based on query execution.

DataServiceCollection<T>(TrackingMode, DataServiceQuerySingle<T>)

Initializes a new instance of the DataServiceCollection<T> class based on query execution and with the specified tracking mode.

Properties

Continuation

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

Methods

CancelAsyncLoad()

Cancels any running LoadAsync operations and calls the LoadCompleted event handler after cancellation.

Clear(Boolean)

Indicates whether all the items from the collection are removed.

Detach()

Disables the DataServiceContext tracking of all items in the collection.

InsertItem(Int32, T)

Adds a specified item to the collection at the specified index.

Load(IEnumerable<T>)

Loads a collection of entity objects into the collection.

Load(T)

Loads a single entity object into the collection.

LoadAsync()

Asynchronously loads items into the collection, when it represents the navigation property of an entity.Supported only by the WCF Data Services 5.0 client for Silverlight.

LoadAsync(IQueryable<T>)

Asynchronously loads the collection by executing a DataServiceQuery<TElement>.Supported only by the WCF Data Services 5.0 client for Silverlight.

LoadAsync(Uri)

Loads the collection asynchronously by loading the results from the request Uri.

LoadNextPartialSetAsync()

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

Events

LoadCompleted

A completion event for the LoadAsync(IQueryable<T>), LoadAsync() and LoadNextPartialSetAsync() method.

Applies to