[This documentation is preliminary and is subject to change.]
Applies to: Metro style apps only
Provides access to a data source and enables you to bind, change, add, remove, and move items in that data source.
The IListDataSource interface has these types of members:
The IListDataSource interface has these events.
Occurs when the status of the IListDataSource changes.
The IListDataSource interface has these methods.
Notifies the IListDataSource that a sequence of edits is about to begin. The IListDataSource will defer notifications until endEdits is called.
Overwrites the data of the specified item.
Creates an IListBinding that can retrieve items from the IListDataSource, enumerate the contents of the IListDataSource object's data, and optionally register for change notifications.
Notifies the IListDataSource that the batch of edits that began with the last beginEdits call has completed. The IListDataSource will submit notifications for any changes that occurred between the beginEdits and endEdits calls as a batch and resume normal change notifications.
Retrieves the number of items in the data source.
Inserts a new item after another item.
Adds an item to the end of the data source.
Adds an item to the beginning of the data source.
Inserts an item before another item.
Indicates that all previous data obtained from the IListDataAdapter is invalid and should be refreshed.
Retrieves the item that has the specified description.
Retrieves the item at the specified index.
Retrieves the item with the specified key.
Moves an item to just after another item.
Moves an item before another item.
Moves an item to the end of the data source.
Moves the specified item to the beginning of the data source.
Removes the specified item from the data source.
A IListDataSource connects a control (such as a ListView) to an IListDataAdapter. The IListDataSource manipulates the IListDataAdapter, which does the work of actually manipulating and retrieving data.
- You can use a List to create an IListDataSource from an array of data.
- You can use a StorageDataSource to access information about files and directories.
You can also create your own custom data source that connects to some other type of data provider, such as a web service or database. For instructions, see How to create a custom data source.
Minimum supported client
|Windows 8 Consumer Preview|
Minimum supported server
|Windows Server 8 Beta|
Build date: 2/10/2012