다음을 통해 공유


SearchClientBuilderExtensions.AddSearchIndexClient Method

Definition

Overloads

AddSearchIndexClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a SearchIndexClient instance with connection options loaded from the provided configuration instance.

AddSearchIndexClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registers a SearchIndexClient instance with the provided endpoint and credential.

AddSearchIndexClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
SearchClientBuilderExtensions.cs
Source:
SearchClientBuilderExtensions.cs

Registers a SearchIndexClient instance with connection options loaded from the provided configuration instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexClient,Azure.Search.Documents.SearchClientOptions> AddSearchIndexClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddSearchIndexClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexClient, Azure.Search.Documents.SearchClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddSearchIndexClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of SearchIndexClient, SearchClientOptions)

Type Parameters

TBuilder

Type of the client factory builder.

TConfiguration

Type of the configuration.

Parameters

builder
TBuilder

The client factory builder.

configuration
TConfiguration

The client configuration.

Returns

An Azure client builder.

Applies to

AddSearchIndexClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Source:
SearchClientBuilderExtensions.cs
Source:
SearchClientBuilderExtensions.cs

Registers a SearchIndexClient instance with the provided endpoint and credential.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexClient,Azure.Search.Documents.SearchClientOptions> AddSearchIndexClient<TBuilder> (this TBuilder builder, Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddSearchIndexClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexClient, Azure.Search.Documents.SearchClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddSearchIndexClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, credential As AzureKeyCredential) As IAzureClientBuilder(Of SearchIndexClient, SearchClientOptions)

Type Parameters

TBuilder

Type of the client factory builder.

Parameters

builder
TBuilder

The client factory builder.

endpoint
Uri

Required. The URI endpoint of the Search Service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS.

credential
AzureKeyCredential

Required. The API key credential used to authenticate requests against the search service. You need to use an admin key to modify the documents in a Search Index. See Create and manage api-keys for an Azure Cognitive Search service for more information about API keys in Azure Cognitive Search.

Returns

An Azure client builder.

Applies to