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

KeyVaultAccessControlClient.GetRoleAssignments 方法

定义

获取范围的角色分配。

public virtual Azure.Pageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment> GetRoleAssignments (Azure.Security.KeyVault.Administration.KeyVaultRoleScope roleScope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleAssignments : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
override this.GetRoleAssignments : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
Public Overridable Function GetRoleAssignments (roleScope As KeyVaultRoleScope, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of KeyVaultRoleAssignment)

参数

roleScope
KeyVaultRoleScope

角色分配的范围。

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

例外

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

roleScope 为 null。

适用于