SALES: 1-800-867-1380
Microsoft Azure
Collapse the table of content
Expand the table of content

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

Show:
© 2016 Microsoft