Method AddAlternateKeyNameAsync
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.Encryption.dll
AddAlternateKeyNameAsync(Guid, string, CancellationToken)
Adds an alternate key name to the keyAltNames array of the key document in the key vault collection with the given UUID (BSON binary subtype 0x04).
public Task<BsonDocument> AddAlternateKeyNameAsync(Guid id, string alternateKeyName, CancellationToken cancellationToken = default)
Parameters
id
Guid
The id.
alternateKeyName
string
The key alter name.
cancellationToken
CancellationToken
The cancellation token.
Returns
Returns the previous version of the key document.