Delen via


DataSourcesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

CreateOrUpdateAsync(IDataSourcesOperations, DataSource, SearchRequestOptions, AccessCondition, CancellationToken)

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

CreateOrUpdateAsync(IDataSourcesOperations, String, DataSource, SearchRequestOptions, AccessCondition, CancellationToken)

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

CreateOrUpdateAsync(IDataSourcesOperations, DataSource, SearchRequestOptions, AccessCondition, CancellationToken)

Source:
DataSourcesOperationsExtensions.Customization.cs

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.DataSource> CreateOrUpdateAsync (this Microsoft.Azure.Search.IDataSourcesOperations operations, Microsoft.Azure.Search.Models.DataSource dataSource, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.IDataSourcesOperations * Microsoft.Azure.Search.Models.DataSource * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.DataSource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDataSourcesOperations, dataSource As DataSource, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataSource)

Parameters

operations
IDataSourcesOperations

The operations group for this extension method.

dataSource
DataSource

The definition of the datasource to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

The datasource that was created or updated.

Applies to

CreateOrUpdateAsync(IDataSourcesOperations, String, DataSource, SearchRequestOptions, AccessCondition, CancellationToken)

Source:
DataSourcesOperationsExtensions.Customization.cs

Creates a new datasource or updates a datasource if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Data-Source

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.DataSource> CreateOrUpdateAsync (this Microsoft.Azure.Search.IDataSourcesOperations operations, string dataSourceName, Microsoft.Azure.Search.Models.DataSource dataSource, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.IDataSourcesOperations * string * Microsoft.Azure.Search.Models.DataSource * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.DataSource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDataSourcesOperations, dataSourceName As String, dataSource As DataSource, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataSource)

Parameters

operations
IDataSourcesOperations

The operations group for this extension method.

dataSourceName
String

The name of the datasource to create or update.

dataSource
DataSource

The definition of the datasource to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to