VectorStore.CollectionExistsAsync(String, CancellationToken) Methode

Definition

Überprüft, ob die Auflistung im Vektorspeicher vorhanden ist.

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)

Parameter

name
String

Der Name der Sammlung.

cancellationToken
CancellationToken

Der CancellationToken zu überwachende Monitor für Abbruchanforderungen. Der Standardwert lautet None.

Gibt zurück

true wenn die Auflistung vorhanden ist, false andernfalls.

Gilt für: