SALES: 1-800-867-1380

MobileServiceClient(string, string) constructor

Updated: June 20, 2013

Creates a new instance of the MobileServiceClient object.

var object = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient(applicationUrl, applicationKey);

applicationUrl
Type: string

The URL of the mobile service.

applicationKey
Type: string

The application key of the mobile service.

 

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

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');

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft