Method CreateDataKeyAsync
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
CreateDataKeyAsync(string, DataKeyOptions, CancellationToken)
An alias function equivalent to createKey.
public Task<Guid> CreateDataKeyAsync(string kmsProvider, DataKeyOptions dataKeyOptions, CancellationToken cancellationToken = default)
Parameters
kmsProviderstringThe kms provider.
dataKeyOptionsDataKeyOptionsThe data key options.
cancellationTokenCancellationTokenThe cancellation token.