Condividi tramite


SearchServiceClient Constructors

Definition

Overloads

SearchServiceClient(DelegatingHandler[])

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(HttpClient, Boolean)

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(String, SearchCredentials)

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the SearchServiceClient class.

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

Initializes a new instance of the SearchServiceClient class.

SearchServiceClient(DelegatingHandler[])

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

SearchServiceClient(ServiceClientCredentials, DelegatingHandler[])

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

credentials
ServiceClientCredentials

Required. Credentials needed for the client to connect to Azure.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null

Applies to

SearchServiceClient(HttpClient, Boolean)

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

httpClient
HttpClient

HttpClient to be used

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling SearchServiceClient.Dispose(). False: will not dispose provided httpClient

Applies to

SearchServiceClient(HttpClientHandler, DelegatingHandler[])

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

SearchServiceClient(String, SearchCredentials)

Source:
SearchServiceClient.Customization.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

searchServiceName
String

Required. The name of the search service.

credentials
SearchCredentials

Required. The credentials used to authenticate to a search service. https://docs.microsoft.com/rest/api/searchservice/

Applies to

SearchServiceClient(ServiceClientCredentials, HttpClient, Boolean)

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

credentials
ServiceClientCredentials

Required. Credentials needed for the client to connect to Azure.

httpClient
HttpClient

HttpClient to be used

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling SearchServiceClient.Dispose(). False: will not dispose provided httpClient

Exceptions

Thrown when a required parameter is null

Applies to

SearchServiceClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Source:
SearchServiceClient.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

credentials
ServiceClientCredentials

Required. Credentials needed for the client to connect to Azure.

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null

Applies to

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

Source:
SearchServiceClient.Customization.cs

Initializes a new instance of the SearchServiceClient class.

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

Parameters

searchServiceName
String

Required. The name of the search service.

credentials
SearchCredentials

Required. The credentials used to authenticate to a search service. https://docs.microsoft.com/rest/api/searchservice/

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The set of delegating handlers to insert in the http client pipeline.

Applies to