VectorStore.CollectionExistsAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the collection exists in the vector store.
public abstract System.Threading.Tasks.Task<bool> CollectionExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member CollectionExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public MustOverride Function CollectionExistsAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- name
- String
The name of the collection.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
true
if the collection exists, false
otherwise.