IIndexOperations.CreateAsync Method (Index, CancellationToken)

 

Applies To: Microsoft Azure

Creates a new Azure Search index. (see https://msdn.microsoft.com/library/azure/dn798941.aspx for more information)

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

Syntax

Task<IndexDefinitionResponse> CreateAsync(
    Index index,
    CancellationToken cancellationToken
)
Task<IndexDefinitionResponse^>^ CreateAsync(
    Index^ index,
    CancellationToken cancellationToken
)
abstract CreateAsync : 
        index:Index *
        cancellationToken:CancellationToken -> Task<IndexDefinitionResponse>
Function CreateAsync (
    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