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