Method RemoveAlternateKeyName
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
RemoveAlternateKeyName(Guid, string, CancellationToken)
Removes an alternateKeyName from the keyAltNames array of the key document in the key vault collection with the given UUID (BSON binary subtype 0x04).
public BsonDocument RemoveAlternateKeyName(Guid id, string alternateKeyName, CancellationToken cancellationToken = default)
Parameters
idGuidThe id.
alternateKeyNamestringThe alternate key name.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- BsonDocument
Returns the previous version of the key document.