IndexerOperationsExtensions.CreateOrUpdateAsync Method (IIndexerOperations, Indexer)
Applies To: Microsoft Azure
Creates a new Azure Search indexer or updates an indexer if it already exists. (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
public static Task<IndexerDefinitionResponse> CreateOrUpdateAsync(
this IIndexerOperations operations,
Indexer indexer
)
public:
[ExtensionAttribute]
static Task<IndexerDefinitionResponse^>^ CreateOrUpdateAsync(
IIndexerOperations^ operations,
Indexer^ indexer
)
static member CreateOrUpdateAsync :
operations:IIndexerOperations *
indexer:Indexer -> Task<IndexerDefinitionResponse>
<ExtensionAttribute>
Public Shared Function CreateOrUpdateAsync (
operations As IIndexerOperations,
indexer As Indexer
) As Task(Of IndexerDefinitionResponse)
Parameters
operations
Type: Microsoft.Azure.Search.IIndexerOperationsReference to the Microsoft.Azure.Search.IIndexerOperations.
indexer
Type: Microsoft.Azure.Search.Models.IndexerRequired. The definition of the indexer to create or update.
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
IndexerOperationsExtensions Class
Microsoft.Azure.Search Namespace
Return to top