Method GetKeyAsync
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.Encryption.dll
GetKeyAsync(Guid, CancellationToken)
Finds a single key document with the given UUID (BSON binary subtype 0x04).
public Task<BsonDocument> GetKeyAsync(Guid id, CancellationToken cancellationToken = default)
Parameters
id
Guid
The id.
cancellationToken
CancellationToken
The cancellation token.
Returns
Returns the result of the internal find() operation on the key vault collection.