Share via


VectorStore.CollectionExistsAsync(String, CancellationToken) Method

Definition

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.

Applies to