MobileServiceTable.read function
Executes a query against the table.
mobileServiceTable.read(query);
Parameters
query
Type: query objectThe query to execute. When null or undefined, all rows are returned.
parameters
Type: objectA JSON object that contains user-defined parameters and values to include in the request URI query string.
Return Value
Type: undefined
Example
This code refreshes the entries in a binding collection by querying the TodoItems table.
todoTable.read().done(function (results) {
todoItems = new WinJS.Binding.List(results);
listItems.winControl.itemDataSource = todoItems.dataSource;
});
.NET Framework Equivalent
Requirements
Namespace |
WindowsAzure.MobileServices |
Library |
MobileServices.js |
See Also
Reference
Other Resources
Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services