Table of Contents

Method RemoveAlternateKeyNameAsync

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.dll

RemoveAlternateKeyNameAsync(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 Task<BsonDocument> RemoveAlternateKeyNameAsync(Guid id, string alternateKeyName, CancellationToken cancellationToken = default)

Parameters

id Guid

The id.

alternateKeyName string

The alternate key name.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<BsonDocument>

Returns the previous version of the key document.