你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LabServicesClient 构造函数

定义

重载

LabServicesClient(DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

LabServicesClient(HttpClient, Boolean)

初始化 LabServicesClient 类的新实例。

LabServicesClient(HttpClientHandler, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

LabServicesClient(Uri, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

LabServicesClient(Uri, HttpClientHandler, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

LabServicesClient(DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

protected LabServicesClient (params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.LabServices.LabServicesClient : System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.LabServices.LabServicesClient
Protected Sub New (ParamArray handlers As DelegatingHandler())

参数

handlers
DelegatingHandler[]

可选。 要添加到 http 客户端管道的委托处理程序。

适用于

LabServicesClient(HttpClient, Boolean)

初始化 LabServicesClient 类的新实例。

protected LabServicesClient (System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.Management.LabServices.LabServicesClient : System.Net.Http.HttpClient * bool -> Microsoft.Azure.Management.LabServices.LabServicesClient
Protected Sub New (httpClient As HttpClient, disposeHttpClient As Boolean)

参数

httpClient
HttpClient

要使用的 HttpClient

disposeHttpClient
Boolean

True:将在调用 LabServicesClient.Dispose () 时释放提供的 httpClient。 False: 不会释放提供的 httpClient

适用于

LabServicesClient(HttpClientHandler, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

protected LabServicesClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.LabServices.LabServicesClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.LabServices.LabServicesClient
Protected Sub New (rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

参数

rootHandler
HttpClientHandler

可选。 用于处理 http 传输的 http 客户端处理程序。

handlers
DelegatingHandler[]

可选。 要添加到 http 客户端管道的委托处理程序。

适用于

LabServicesClient(Uri, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

protected LabServicesClient (Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.LabServices.LabServicesClient : Uri * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.LabServices.LabServicesClient
Protected Sub New (baseUri As Uri, ParamArray handlers As DelegatingHandler())

参数

baseUri
Uri

可选。 服务的基 URI。

handlers
DelegatingHandler[]

可选。 要添加到 http 客户端管道的委托处理程序。

例外

当所需参数为 null 时引发

适用于

LabServicesClient(Uri, HttpClientHandler, DelegatingHandler[])

初始化 LabServicesClient 类的新实例。

protected LabServicesClient (Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Management.LabServices.LabServicesClient : Uri * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Management.LabServices.LabServicesClient
Protected Sub New (baseUri As Uri, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

参数

baseUri
Uri

可选。 服务的基 URI。

rootHandler
HttpClientHandler

可选。 用于处理 http 传输的 http 客户端处理程序。

handlers
DelegatingHandler[]

可选。 要添加到 http 客户端管道的委托处理程序。

例外

当所需参数为 null 时引发

适用于