Method GetKeyAsync
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.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
GuidThe id.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<BsonDocument>
Returns the result of the internal find() operation on the key vault collection.