IndexesGetClientExtensions.GetClient(IIndexesOperations, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new index client for querying and managing documents in a given index.
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
Parameters
- operations
- IIndexesOperations
The operation group for indexes of the Search service.
- indexName
- String
The name of the index.
Returns
A new SearchIndexClient
instance.
Remarks
The new client is configured with full read-write access to the index. If you are only planning to use the client for query operations, we recommend directly creating a SearchIndexClient
instance instead.
Applies to
Azure SDK for .NET