Method GetKeyByAlternateKeyName
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.dll
GetKeyByAlternateKeyName(string, CancellationToken)
Finds a single key document with the given alter name.
public BsonDocument GetKeyByAlternateKeyName(string alternateKeyName, CancellationToken cancellationToken = default)
Parameters
alternateKeyName
stringThe alternate key name.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- BsonDocument
Returns a key document in the key vault collection with the given alternateKeyName.