共用方式為


DataSourcesOperationsExtensions.ListAsync Method

Definition

Lists all datasources available for a search service. https://docs.microsoft.com/rest/api/searchservice/List-Data-Sources

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

Parameters

operations
IDataSourcesOperations

The operations group for this extension method.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to