MobileServiceClient object
Enables your Windows Store app to access and work with a specific Microsoft Azure Mobile Services instance.
var mobileServiceClient = new WindowsAzure.MobileServices.MobileServiceClient(applicationUrl, applicationKey);
Members
This object contains the following members:
Constructor
Methods
Method | Description |
---|---|
Gets a reference to a table and its data operations. |
|
Calls a custom API defined in the mobile service. |
|
Logs a user into the mobile service using an access token. |
|
Logs a user out of the mobile service. |
|
Creates a new MobileServiceClient instance with a filter used to process all of its HTTP requests and responses. |
Properties
Property | Description |
---|---|
The application key of the mobile service. |
|
The URL to the mobile service. |
|
The current user. |
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');
Remarks
.NET Framework Equivalent
Requirements
Namespace |
WindowsAzure.MobileServices |
Library |
MobileServices.js |
See Also
Concepts
Other Resources
Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services