MobileServiceClient.getTable function

Gets a reference to a table and its data operations.

mobileServiceClient.getTable(tableName);

Parameters

  • tableName
    Type: string

    The name of the table.

Return Value

Type: MobileServiceTable object

A reference to the table.

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

.NET Framework Equivalent

GetTable

Requirements

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

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