你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RecoveryServicesClient 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RecoveryServicesClient(DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
protected RecoveryServicesClient (params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (ParamArray handlers As DelegatingHandler())
参数
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
适用于
RecoveryServicesClient(Uri, ServiceClientCredentials, HttpClient, Boolean, DelegatingHandler[])
public RecoveryServicesClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disableDispose, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, httpClient As HttpClient, disableDispose As Boolean, ParamArray handlers As DelegatingHandler())
参数
- baseUri
- Uri
- credentials
- ServiceClientCredentials
- httpClient
- HttpClient
- disableDispose
- Boolean
- handlers
- DelegatingHandler[]
适用于
RecoveryServicesClient(Uri, ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
public RecoveryServicesClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())
参数
- baseUri
- Uri
可选。 服务的基 URI。
- credentials
- ServiceClientCredentials
必需。 客户端连接到 Azure 所需的凭据。
- rootHandler
- HttpClientHandler
可选。 用于处理 http 传输的 http 客户端处理程序。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(Uri, HttpClientHandler, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
protected RecoveryServicesClient (Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Uri * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (baseUri As Uri, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())
参数
- baseUri
- Uri
可选。 服务的基 URI。
- rootHandler
- HttpClientHandler
可选。 用于处理 http 传输的 http 客户端处理程序。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
public RecoveryServicesClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())
参数
- credentials
- ServiceClientCredentials
必需。 客户端连接到 Azure 所需的凭据。
- rootHandler
- HttpClientHandler
可选。 用于处理 http 传输的 http 客户端处理程序。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(ServiceClientCredentials, HttpClient, Boolean)
初始化 RecoveryServicesClient 类的新实例。
public RecoveryServicesClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (credentials As ServiceClientCredentials, httpClient As HttpClient, disposeHttpClient As Boolean)
参数
- credentials
- ServiceClientCredentials
必需。 客户端连接到 Azure 所需的凭据。
- httpClient
- HttpClient
要使用的 HttpClient
- disposeHttpClient
- Boolean
True:将在调用 RecoveryServicesClient.Dispose () 时释放提供的 httpClient。 False: 不会释放提供的 httpClient
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(Uri, ServiceClientCredentials, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
public RecoveryServicesClient (Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Uri * Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (baseUri As Uri, credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())
参数
- baseUri
- Uri
可选。 服务的基 URI。
- credentials
- ServiceClientCredentials
必需。 客户端连接到 Azure 所需的凭据。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(HttpClientHandler, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
protected RecoveryServicesClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())
参数
- rootHandler
- HttpClientHandler
可选。 用于处理 http 传输的 http 客户端处理程序。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
适用于
RecoveryServicesClient(HttpClient, DelegatingHandler[])
protected RecoveryServicesClient (System.Net.Http.HttpClient httpClient, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : System.Net.Http.HttpClient * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (httpClient As HttpClient, ParamArray handlers As DelegatingHandler())
参数
- httpClient
- HttpClient
- handlers
- DelegatingHandler[]
适用于
RecoveryServicesClient(HttpClient, Boolean)
初始化 RecoveryServicesClient 类的新实例。
protected RecoveryServicesClient (System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : System.Net.Http.HttpClient * bool -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (httpClient As HttpClient, disposeHttpClient As Boolean)
参数
- httpClient
- HttpClient
要使用的 HttpClient
- disposeHttpClient
- Boolean
True:将在调用 RecoveryServicesClient.Dispose () 时释放提供的 httpClient。 False: 不会释放提供的 httpClient
适用于
RecoveryServicesClient(ServiceClientCredentials, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
public RecoveryServicesClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Public Sub New (credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())
参数
- credentials
- ServiceClientCredentials
必需。 客户端连接到 Azure 所需的凭据。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
RecoveryServicesClient(Uri, DelegatingHandler[])
初始化 RecoveryServicesClient 类的新实例。
protected RecoveryServicesClient (Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient : Uri * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.RecoveryServices.RecoveryServicesClient
Protected Sub New (baseUri As Uri, ParamArray handlers As DelegatingHandler())
参数
- baseUri
- Uri
可选。 服务的基 URI。
- handlers
- DelegatingHandler[]
可选。 要添加到 http 客户端管道的委托处理程序。
例外
当所需参数为 null 时引发
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈