UnpinSnapshotDataAsync()
Releases a previously pinned snapshot.
public async Task UnpinSnapshotDataAsync(UnpinSnapshotDataReq request, CancellationToken cancellationToken = default)
Request Syntax
var request = new UnpinSnapshotDataReq
{
PinId = 12345
};
await client.UnpinSnapshotDataAsync(request);
REQUEST PARAMETERS:
PinId(long) -The ID of the pin to release, as returned by
PinSnapshotDataAsync().
RETURN TYPE:
Task
RETURNS:
This method does not return a value.
EXCEPTIONS:
-
Thrown when the RPC fails or the server returns an error. Inspect the exception message for details.
Example
using Milvus.Client.V2;
using Milvus.Client.V2.Requests.Snapshot;
using Milvus.Client.V2.Types;
using var client = new MilvusClientV2(new ConnectConfig
{
Uri = "localhost:19530",
Username = "root",
Password = "Milvus"
});
await client.ConnectAsync();
await client.UnpinSnapshotDataAsync(new UnpinSnapshotDataReq
{
PinId = 12345
});