MobileServiceTable.update function
Updates an object in a given table.
mobileServiceTable.update(instance);
Parameters
instance
Type: objectThe instance to update in the table, as a JSON object.
Return Value
Type: A Promise object that returns the updated object when it completes.
Call the done method on the returned Promise object to get a copy of the updated object and handle any errors.
Example
This code takes a freshly completed TodoItem and updates the database.
todoTable.update(todoItem);
.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