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

SearchIndexClient 构造函数

定义

重载

SearchIndexClient(DelegatingHandler[])

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(ServiceClientCredentials, DelegatingHandler[])

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(HttpClient, Boolean)

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(HttpClientHandler, DelegatingHandler[])

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(ServiceClientCredentials, HttpClient, Boolean)

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(String, String, SearchCredentials)

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(String, String, SearchCredentials, HttpClientHandler, DelegatingHandler[])

初始化 SearchIndexClient 类的新实例。

SearchIndexClient(DelegatingHandler[])

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

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

参数

handlers
DelegatingHandler[]

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

适用于

SearchIndexClient(ServiceClientCredentials, DelegatingHandler[])

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

public SearchIndexClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Search.SearchIndexClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Search.SearchIndexClient
Public Sub New (credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())

参数

credentials
ServiceClientCredentials

必需。 客户端连接到 Azure 所需的凭据。

handlers
DelegatingHandler[]

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

例外

当所需的参数为 null 时引发

适用于

SearchIndexClient(HttpClient, Boolean)

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

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

参数

httpClient
HttpClient

要使用的 HttpClient

disposeHttpClient
Boolean

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

适用于

SearchIndexClient(HttpClientHandler, DelegatingHandler[])

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

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

参数

rootHandler
HttpClientHandler

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

handlers
DelegatingHandler[]

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

适用于

SearchIndexClient(ServiceClientCredentials, HttpClient, Boolean)

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

public SearchIndexClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.Search.SearchIndexClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Azure.Search.SearchIndexClient
Public Sub New (credentials As ServiceClientCredentials, httpClient As HttpClient, disposeHttpClient As Boolean)

参数

credentials
ServiceClientCredentials

必需。 客户端连接到 Azure 所需的凭据。

httpClient
HttpClient

要使用的 HttpClient

disposeHttpClient
Boolean

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

例外

当所需的参数为 null 时引发

适用于

SearchIndexClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Source:
SearchIndexClient.cs

初始化 SearchIndexClient 类的新实例。

public SearchIndexClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Search.SearchIndexClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Search.SearchIndexClient
Public Sub New (credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

参数

credentials
ServiceClientCredentials

必需。 客户端连接到 Azure 所需的凭据。

rootHandler
HttpClientHandler

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

handlers
DelegatingHandler[]

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

例外

当所需的参数为 null 时引发

适用于

SearchIndexClient(String, String, SearchCredentials)

Source:
SearchIndexClient.Customization.cs

初始化 SearchIndexClient 类的新实例。

public SearchIndexClient (string searchServiceName, string indexName, Microsoft.Azure.Search.SearchCredentials credentials);
new Microsoft.Azure.Search.SearchIndexClient : string * string * Microsoft.Azure.Search.SearchCredentials -> Microsoft.Azure.Search.SearchIndexClient
Public Sub New (searchServiceName As String, indexName As String, credentials As SearchCredentials)

参数

searchServiceName
String

必需。 搜索服务的名称。

indexName
String

必需。 搜索索引的名称。

credentials
SearchCredentials

必需。 用于向搜索服务进行身份验证的凭据。 https://docs.microsoft.com/rest/api/searchservice/

适用于

SearchIndexClient(String, String, SearchCredentials, HttpClientHandler, DelegatingHandler[])

Source:
SearchIndexClient.Customization.cs

初始化 SearchIndexClient 类的新实例。

public SearchIndexClient (string searchServiceName, string indexName, Microsoft.Azure.Search.SearchCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.Search.SearchIndexClient : string * string * Microsoft.Azure.Search.SearchCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.Search.SearchIndexClient
Public Sub New (searchServiceName As String, indexName As String, credentials As SearchCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

参数

searchServiceName
String

必需。 搜索服务的名称。

indexName
String

必需。 搜索索引的名称。

credentials
SearchCredentials

必需。 用于向搜索服务进行身份验证的凭据。 https://docs.microsoft.com/rest/api/searchservice/

rootHandler
HttpClientHandler

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

handlers
DelegatingHandler[]

可选。 要插入 http 客户端管道中的委托处理程序集。

适用于