milvus-logo
LFAI
< Docs
  • C#

HasPartitionAsync()

Checks whether a partition exists.

Invocation

await collection.HasPartitionAsync(partitionName, cancellationToken = default);

Parameters

ParameterDescriptionTypeRequired
partitionNameThe name of partition to be checked.stringTrue
cancellationTokenThe token to monitor for cancellation requests. The default value is CancellationToken.None.CancellationTokenFalse

Return

Whether the partition exists or not.

Feedback

Was this page helpful?