IDataSourceOperations.CreateOrUpdateAsync Method (DataSource, CancellationToken)

 

Applies To: Microsoft Azure

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

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

Syntax

Task<DataSourceDefinitionResponse> CreateOrUpdateAsync(
    DataSource dataSource,
    CancellationToken cancellationToken
)
Task<DataSourceDefinitionResponse^>^ CreateOrUpdateAsync(
    DataSource^ dataSource,
    CancellationToken cancellationToken
)
abstract CreateOrUpdateAsync : 
        dataSource:DataSource *
        cancellationToken:CancellationToken -> Task<DataSourceDefinitionResponse>
Function CreateOrUpdateAsync (
    dataSource As DataSource,
    cancellationToken As CancellationToken
) As Task(Of DataSourceDefinitionResponse)

Parameters

Return Value

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

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

See Also

IDataSourceOperations Interface
Microsoft.Azure.Search Namespace

Return to top