IIndexerOperations.CreateAsync Method (Indexer, CancellationToken)
Applies To: Microsoft Azure
Creates a new Azure Search indexer. (see https://msdn.microsoft.com/library/azure/dn946899.aspx for more information)
Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Syntax
Task<IndexerDefinitionResponse> CreateAsync(
Indexer indexer,
CancellationToken cancellationToken
)
Task<IndexerDefinitionResponse^>^ CreateAsync(
Indexer^ indexer,
CancellationToken cancellationToken
)
abstract CreateAsync :
indexer:Indexer *
cancellationToken:CancellationToken -> Task<IndexerDefinitionResponse>
Function CreateAsync (
indexer As Indexer,
cancellationToken As CancellationToken
) As Task(Of IndexerDefinitionResponse)
Parameters
indexer
Type: Microsoft.Azure.Search.Models.IndexerThe definition of the indexer to create.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<IndexerDefinitionResponse>
Response from a Create, Update, or Get Indexer request. If successful, it includes the full definition of the indexer that was created, updated, or retrieved.
See Also
IIndexerOperations Interface
Microsoft.Azure.Search Namespace
Return to top