DataServiceCollection<T> Class
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.
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
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. |