你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SearchIndexerClient 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SearchIndexerClient()
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
初始化 类的新实例 SearchIndexerClient 进行模拟。
protected SearchIndexerClient ();
Protected Sub New ()
适用于
SearchIndexerClient(Uri, AzureKeyCredential)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
初始化 SearchIndexerClient 类的新实例。
public SearchIndexerClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.Search.Documents.Indexes.SearchIndexerClient : Uri * Azure.AzureKeyCredential -> Azure.Search.Documents.Indexes.SearchIndexerClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)
参数
- endpoint
- Uri
必需。 搜索服务的 URI 终结点。 这可能类似于“https://{search_service}.search.windows.net”。 URI 必须使用 HTTPS。
- credential
- AzureKeyCredential
必需。 用于对搜索服务的请求进行身份验证的 API 密钥凭据。 需要使用管理密钥对 SearchIndexerClient 执行任何操作。 有关 Azure 认知搜索 中的 API 密钥的详细信息,请参阅为Azure 认知搜索服务创建和管理 API 密钥。
例外
当 或 credential
为 null 时endpoint
引发。
未使用 HTTPS 时 endpoint
引发。
适用于
SearchIndexerClient(Uri, TokenCredential)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
初始化 SearchIndexerClient 类的新实例。
public SearchIndexerClient (Uri endpoint, Azure.Core.TokenCredential tokenCredential);
new Azure.Search.Documents.Indexes.SearchIndexerClient : Uri * Azure.Core.TokenCredential -> Azure.Search.Documents.Indexes.SearchIndexerClient
Public Sub New (endpoint As Uri, tokenCredential As TokenCredential)
参数
- endpoint
- Uri
必需。 搜索服务的 URI 终结点。 这可能类似于“https://{search_service}.search.windows.net”。 URI 必须使用 HTTPS。
- tokenCredential
- TokenCredential
必需。用于针对搜索服务对请求进行身份验证的令牌凭据。 有关Azure 认知搜索中基于角色的授权的详细信息,请参阅在 Azure 认知搜索 中使用基于角色的授权。
例外
当 或 tokenCredential
为 null 时endpoint
引发。
未使用 HTTPS 时 endpoint
引发。
适用于
SearchIndexerClient(Uri, AzureKeyCredential, SearchClientOptions)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
初始化 SearchIndexerClient 类的新实例。
public SearchIndexerClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options);
new Azure.Search.Documents.Indexes.SearchIndexerClient : Uri * Azure.AzureKeyCredential * Azure.Search.Documents.SearchClientOptions -> Azure.Search.Documents.Indexes.SearchIndexerClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As SearchClientOptions)
参数
- endpoint
- Uri
必需。 搜索服务的 URI 终结点。 这可能类似于“https://{search_service}.search.windows.net”。 URI 必须使用 HTTPS。
- credential
- AzureKeyCredential
必需。 用于对搜索服务的请求进行身份验证的 API 密钥凭据。 需要使用管理密钥对 SearchIndexerClient 执行任何操作。 有关 Azure 认知搜索 中的 API 密钥的详细信息,请参阅为Azure 认知搜索服务创建和管理 API 密钥。
- options
- SearchClientOptions
用于连接到 Azure 认知搜索 的客户端配置选项。
例外
当 或 credential
为 null 时endpoint
引发。
未使用 HTTPS 时 endpoint
引发。
适用于
SearchIndexerClient(Uri, TokenCredential, SearchClientOptions)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
初始化 SearchIndexerClient 类的新实例。
public SearchIndexerClient (Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options);
new Azure.Search.Documents.Indexes.SearchIndexerClient : Uri * Azure.Core.TokenCredential * Azure.Search.Documents.SearchClientOptions -> Azure.Search.Documents.Indexes.SearchIndexerClient
Public Sub New (endpoint As Uri, tokenCredential As TokenCredential, options As SearchClientOptions)
参数
- endpoint
- Uri
必需。 搜索服务的 URI 终结点。 这可能类似于“https://{search_service}.search.windows.net”。 URI 必须使用 HTTPS。
- tokenCredential
- TokenCredential
必需。 用于针对搜索服务对请求进行身份验证的令牌凭据。 有关Azure 认知搜索中基于角色的授权的详细信息,请参阅在 Azure 认知搜索 中使用基于角色的授权。
- options
- SearchClientOptions
用于连接到 Azure 认知搜索 的客户端配置选项。
例外
当 或 tokenCredential
为 null 时endpoint
引发。
未使用 HTTPS 时 endpoint
引发。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈