MobileServiceClient(string, string) constructor

Creates a new instance of the MobileServiceClient object.

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

Parameters

  • applicationUrl
    Type: string

    The URL of the mobile service.

  • applicationKey
    Type: string

    The application key of the mobile service.

.NET Framework Equivalent

MobileServiceClient

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

MobileServiceClient object

Other Resources

Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services