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

IndexesGetClientExtensions.GetClient(IIndexesOperations, String) 方法

定义

创建一个新的索引客户端,用于查询和管理给定索引中的文档。

public static Microsoft.Azure.Search.ISearchIndexClient GetClient (this Microsoft.Azure.Search.IIndexesOperations operations, string indexName);
static member GetClient : Microsoft.Azure.Search.IIndexesOperations * string -> Microsoft.Azure.Search.ISearchIndexClient
<Extension()>
Public Function GetClient (operations As IIndexesOperations, indexName As String) As ISearchIndexClient

参数

operations
IIndexesOperations

搜索服务索引的操作组。

indexName
String

索引的名称。

返回

SearchIndexClient 实例。

注解

为新客户端配置了对索引的完全读写访问权限。 如果仅计划将客户端用于查询操作,建议改为直接创建 SearchIndexClient 实例。

适用于