MobileServiceClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MobileServiceClient() |
This is for unit testing only |
| MobileServiceClient(IMobileServiceClientOptions) |
Initializes a new instance of the MobileServiceClient class. |
| MobileServiceClient(String, HttpMessageHandler[]) |
Initializes a new instance of the MobileServiceClient class. |
| MobileServiceClient(Uri, HttpMessageHandler[]) |
Initializes a new instance of the MobileServiceClient class. |
MobileServiceClient()
This is for unit testing only
protected MobileServiceClient();
Protected Sub New ()
Applies to
MobileServiceClient(IMobileServiceClientOptions)
Initializes a new instance of the MobileServiceClient class.
public MobileServiceClient(Microsoft.WindowsAzure.MobileServices.IMobileServiceClientOptions options);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : Microsoft.WindowsAzure.MobileServices.IMobileServiceClientOptions -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (options As IMobileServiceClientOptions)
Parameters
- options
- IMobileServiceClientOptions
the connection options.
Applies to
MobileServiceClient(String, HttpMessageHandler[])
Initializes a new instance of the MobileServiceClient class.
public MobileServiceClient(string mobileAppUri, params System.Net.Http.HttpMessageHandler[] handlers);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : string * System.Net.Http.HttpMessageHandler[] -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (mobileAppUri As String, ParamArray handlers As HttpMessageHandler())
Parameters
- mobileAppUri
- String
Absolute URI of the Microsoft Azure Mobile App.
- handlers
- HttpMessageHandler[]
Chain of HttpMessageHandler instances. All but the last should be DelegatingHandlers.
Applies to
MobileServiceClient(Uri, HttpMessageHandler[])
Initializes a new instance of the MobileServiceClient class.
public MobileServiceClient(Uri mobileAppUri, params System.Net.Http.HttpMessageHandler[] handlers);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : Uri * System.Net.Http.HttpMessageHandler[] -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (mobileAppUri As Uri, ParamArray handlers As HttpMessageHandler())
Parameters
- mobileAppUri
- Uri
Absolute URI of the Microsoft Azure Mobile App.
- handlers
- HttpMessageHandler[]
Chain of HttpMessageHandler instances. All but the last should be DelegatingHandlers.