Table of Contents

Method GetKey

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

GetKey(Guid, CancellationToken)

Finds a single key document with the given UUID (BSON binary subtype 0x04).

public BsonDocument GetKey(Guid id, CancellationToken cancellationToken = default)

Parameters

id Guid

The id.

cancellationToken CancellationToken

The cancellation token.

Returns

BsonDocument

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