Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Database.CreateClientEncryptionKeyAsync 方法

定义

将客户端加密密钥保存为 Azure Cosmos 服务中的异步操作。 此方法不应直接调用。 若要使用客户端加密,请参阅 https://aka.ms/CosmosClientEncryption

public abstract System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ClientEncryptionKeyResponse> CreateClientEncryptionKeyAsync (Microsoft.Azure.Cosmos.ClientEncryptionKeyProperties clientEncryptionKeyProperties, Microsoft.Azure.Cosmos.RequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateClientEncryptionKeyAsync : Microsoft.Azure.Cosmos.ClientEncryptionKeyProperties * Microsoft.Azure.Cosmos.RequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Cosmos.ClientEncryptionKeyResponse>
Public MustOverride Function CreateClientEncryptionKeyAsync (clientEncryptionKeyProperties As ClientEncryptionKeyProperties, Optional requestOptions As RequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientEncryptionKeyResponse)

参数

clientEncryptionKeyProperties
ClientEncryptionKeyProperties

客户端加密密钥属性。

requestOptions
RequestOptions

(可选) 请求的选项。

cancellationToken
CancellationToken

(表示请求取消的可选) 令牌。

返回

一个可等待的响应,用于包装 ClientEncryptionKeyProperties 包含读取资源记录的 。

适用于