Eksportér (0) Udskriv
Udvid alt
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

MobileServiceTable.take function

Updated: June 20, 2013

Returns the specified number of rows in the query.

mobileServiceTable.take(count);

count
Type: number

The number of rows in the query to return.

Type: Query object

A query that can be further composed.

This code defines a filtered query that returns the top 3 items, and then binds the results to a control.

todoTable.where({ complete: false })
    .take(3)
    .read()
    .done(function (results) {
        todoItems = new WinJS.Binding.List(results);
        listItems.winControl.itemDataSource = todoItems.dataSource;
    });

 

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

Vis:
© 2014 Microsoft