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

KeyClient.GetPropertiesOfKeyVersionsAsync(String, CancellationToken) 方法

定义

列出指定密钥的所有启用和禁用版本的属性。 可以在后续调用 GetKeyAsync(String, String, CancellationToken)中使用返回的 NameVersion

public virtual Azure.AsyncPageable<Azure.Security.KeyVault.Keys.KeyProperties> GetPropertiesOfKeyVersionsAsync (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfKeyVersionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Keys.KeyProperties>
override this.GetPropertiesOfKeyVersionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Keys.KeyProperties>
Public Overridable Function GetPropertiesOfKeyVersionsAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of KeyProperties)

参数

name
String

键的名称。

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

例外

name 是一个空字符串。

name 为 null。

服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message

注解

响应中提供了完整密钥标识符、属性和标记。 此操作需要密钥/列表权限。

适用于