Method GetKeyAsync

| MongoDB CSharp Driver API Reference (original) (raw)

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

id Guid

The id.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<BsonDocument>

Returns the result of the internal find() operation on the key vault collection.