你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MobileServiceClient 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MobileServiceClient() |
这仅适用于单元测试 |
MobileServiceClient(IMobileServiceClientOptions) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(String) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(Uri) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(String, HttpMessageHandler[]) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(String, String) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(Uri, HttpMessageHandler[]) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(Uri, String) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(String, String, HttpMessageHandler[]) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient(Uri, String, HttpMessageHandler[]) |
初始化 MobileServiceClient 类的新实例。 |
MobileServiceClient()
这仅适用于单元测试
protected MobileServiceClient ();
Protected Sub New ()
适用于
MobileServiceClient(IMobileServiceClientOptions)
初始化 MobileServiceClient 类的新实例。
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)
参数
- options
- IMobileServiceClientOptions
连接选项。
适用于
MobileServiceClient(String)
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (string applicationUrl);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : string -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUrl As String)
参数
- applicationUrl
- String
Microsoft Azure 移动服务的 URI。
适用于
MobileServiceClient(Uri)
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (Uri applicationUri);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : Uri -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUri As Uri)
参数
- applicationUri
- Uri
Microsoft Azure 移动服务的 URI。
适用于
MobileServiceClient(String, HttpMessageHandler[])
初始化 MobileServiceClient 类的新实例。
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())
参数
- mobileAppUri
- String
Microsoft Azure 移动应用的绝对 URI。
- handlers
- HttpMessageHandler[]
HttpMessageHandler 实例的链。 除了最后一项之外的所有项都应该是 DelegatingHandler。
适用于
MobileServiceClient(String, String)
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (string applicationUrl, string applicationKey);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : string * string -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUrl As String, applicationKey As String)
参数
- applicationUrl
- String
Microsoft Azure 移动服务的 URI。
- applicationKey
- String
Microsoft Azure 移动服务的应用程序密钥。
适用于
MobileServiceClient(Uri, HttpMessageHandler[])
初始化 MobileServiceClient 类的新实例。
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())
参数
- mobileAppUri
- Uri
Microsoft Azure 移动应用的绝对 URI。
- handlers
- HttpMessageHandler[]
HttpMessageHandler 实例的链。 除了最后一项之外的所有项都应该是 DelegatingHandler。
适用于
MobileServiceClient(Uri, String)
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (Uri applicationUri, string applicationKey);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : Uri * string -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUri As Uri, applicationKey As String)
参数
- applicationUri
- Uri
Microsoft Azure 移动服务的 URI。
- applicationKey
- String
Microsoft Azure 移动服务的应用程序密钥。
适用于
MobileServiceClient(String, String, HttpMessageHandler[])
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (string applicationUrl, string applicationKey, params System.Net.Http.HttpMessageHandler[] handlers);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : string * string * System.Net.Http.HttpMessageHandler[] -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUrl As String, applicationKey As String, ParamArray handlers As HttpMessageHandler())
参数
- applicationUrl
- String
Microsoft Azure 移动服务的 URI。
- applicationKey
- String
Microsoft Azure 移动服务的应用程序密钥。
- handlers
- HttpMessageHandler[]
HttpMessageHandler 实例的链。 除了最后一项之外的所有项都应该是 DelegatingHandler。
适用于
MobileServiceClient(Uri, String, HttpMessageHandler[])
初始化 MobileServiceClient 类的新实例。
public MobileServiceClient (Uri applicationUri, string applicationKey, params System.Net.Http.HttpMessageHandler[] handlers);
new Microsoft.WindowsAzure.MobileServices.MobileServiceClient : Uri * string * System.Net.Http.HttpMessageHandler[] -> Microsoft.WindowsAzure.MobileServices.MobileServiceClient
Public Sub New (applicationUri As Uri, applicationKey As String, ParamArray handlers As HttpMessageHandler())
参数
- applicationUri
- Uri
Microsoft Azure 移动服务的 URI。
- applicationKey
- String
Microsoft Azure 移动服务的应用程序密钥。
- handlers
- HttpMessageHandler[]
HttpMessageHandler 实例的链。 除了最后一项之外的所有项都应该是 DelegatingHandler。