IDataSourceOperations.GetAsync Method (String, CancellationToken)
Applies To: Microsoft Azure
Retrieves a datasource definition from Azure Search. (see https://msdn.microsoft.com/library/azure/dn946893.aspx for more information)
Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Syntax
Task<DataSourceDefinitionResponse> GetAsync(
string dataSourceName,
CancellationToken cancellationToken
)
Task<DataSourceDefinitionResponse^>^ GetAsync(
String^ dataSourceName,
CancellationToken cancellationToken
)
abstract GetAsync :
dataSourceName:string *
cancellationToken:CancellationToken -> Task<DataSourceDefinitionResponse>
Function GetAsync (
dataSourceName As String,
cancellationToken As CancellationToken
) As Task(Of DataSourceDefinitionResponse)
Parameters
dataSourceName
Type: System.StringThe name of the datasource to retrieve.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
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