共用方式為


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。

適用於