Exporteren (0) Afdrukken
Alles uitvouwen
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

MobileServiceTable.insert function

Updated: June 20, 2013

Inserts data from the supplied JSON object into the table.

mobileServiceTable.insert(instance);

instance
Type: object

The instance to insert into the table.

Type: A Promise object that returns a new instance of the inserted object when it completes.

Call the done method on the returned Promise object to get a copy of the inserted object and handle any errors.

This code inserts a new item into the table in the mobile service, and adds the returned item to the local collection.

todoTable.insert(todoItem).done(function (item) {
    todoItems.push(item);
});

 

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

Weergeven:
© 2014 Microsoft