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

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