MobileServiceTable.read function

Executes a query against the table.

mobileServiceTable.read(query);

Parameters

  • query
    Type: query object

    The query to execute. When null or undefined, all rows are returned.

  • parameters
    Type: object

    A 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

ReadAsync

Requirements

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

See Also

Reference

MobileServiceTable object

Other Resources

Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services