MobileServiceClient(string, string) constructor
Creates a new instance of the MobileServiceClient object.
var object = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient(applicationUrl, applicationKey);
Parameters
applicationUrl
Type: stringThe URL of the mobile service.
applicationKey
Type: stringThe application key of the mobile service.
.NET Framework Equivalent
Requirements
Namespace |
WindowsAzure.MobileServices |
Library |
MobileServices.js |
Example
The following code creates a new client object to access the todolist
mobile service and create a new proxy object for the TodoItem
table.
var mobileService = new WindowsAzure.MobileServiceClient(
"todolist.azure-mobile.net",
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
);
var todoTable = mobileService.getTable('TodoItem');
See Also
Reference
Other Resources
Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services