IIndexOperations.ExistsAsync Method
Determines whether or not the given index exists in the Azure Search service.
Namespace: Microsoft.Azure.Search
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Usage
'Usage
Dim instance As IIndexOperations
Dim indexName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of Boolean)
returnValue = instance.ExistsAsync(indexName, cancellationToken)
Syntax
'Declaration
Function ExistsAsync ( _
indexName As String, _
cancellationToken As CancellationToken _
) As Task(Of Boolean)
Task<bool> ExistsAsync (
string indexName,
CancellationToken cancellationToken
)
Task<bool>^ ExistsAsync (
String^ indexName,
CancellationToken cancellationToken
)
Task<boolean> ExistsAsync (
String indexName,
CancellationToken cancellationToken
)
function ExistsAsync (
indexName : String,
cancellationToken : CancellationToken
) : Task<boolean>
Parameters
- indexName
The name of the index.
- cancellationToken
Cancellation token.
Return Value
true if the index exists; false otherwise.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IIndexOperations Interface
IIndexOperations Members
Microsoft.Azure.Search Namespace