IIndexOperations.CreateOrUpdateAsync Method (Index, CancellationToken)

 

Applies To: Microsoft Azure

Creates a new Azure Search index or updates an index if it already exists. (see https://msdn.microsoft.com/library/azure/dn800964.aspx for more information)

Namespace:   Microsoft.Azure.Search
Assembly:  Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)

Syntax

Task<IndexDefinitionResponse> CreateOrUpdateAsync(
    Index index,
    CancellationToken cancellationToken
)
Task<IndexDefinitionResponse^>^ CreateOrUpdateAsync(
    Index^ index,
    CancellationToken cancellationToken
)
abstract CreateOrUpdateAsync : 
        index:Index *
        cancellationToken:CancellationToken -> Task<IndexDefinitionResponse>
Function CreateOrUpdateAsync (
    index As Index,
    cancellationToken As CancellationToken
) As Task(Of IndexDefinitionResponse)

Parameters

Return Value

Type: System.Threading.Tasks.Task<IndexDefinitionResponse>

Response from a Create, Update, or Get Index request. If successful, it includes the full definition of the index that was created, updated, or retrieved.

See Also

IIndexOperations Interface
Microsoft.Azure.Search Namespace

Return to top