DataSourceOperationsExtensions.ExistsAsync Method (IDataSourceOperations, String)
Applies To: Microsoft Azure
Determines whether or not the given data source exists in the Azure Search service.
Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Syntax
public static Task<bool> ExistsAsync(
this IDataSourceOperations operations,
string dataSourceName
)
public:
[ExtensionAttribute]
static Task<bool>^ ExistsAsync(
IDataSourceOperations^ operations,
String^ dataSourceName
)
static member ExistsAsync :
operations:IDataSourceOperations *
dataSourceName:string -> Task<bool>
<ExtensionAttribute>
Public Shared Function ExistsAsync (
operations As IDataSourceOperations,
dataSourceName As String
) As Task(Of Boolean)
Parameters
operations
Type: Microsoft.Azure.Search.IDataSourceOperationsReference to the Microsoft.Azure.Search.IDataSourceOperations.
dataSourceName
Type: System.StringThe name of the data source.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
true if the data source exists; false otherwise.
See Also
DataSourceOperationsExtensions Class
Microsoft.Azure.Search Namespace
Return to top