KeyVaultAccessControlClient.GetRoleAssignmentsAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得範圍的角色指派。
public virtual Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment> GetRoleAssignmentsAsync (Azure.Security.KeyVault.Administration.KeyVaultRoleScope roleScope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleAssignmentsAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
override this.GetRoleAssignmentsAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
Public Overridable Function GetRoleAssignmentsAsync (roleScope As KeyVaultRoleScope, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of KeyVaultRoleAssignment)
參數
- roleScope
- KeyVaultRoleScope
角色指派的範圍。
- cancellationToken
- CancellationToken
控制 CancellationToken 要求存留期的 。
傳回
例外狀況
伺服器傳回錯誤。 如需從伺服器傳回的詳細資料,請參閱 Message 。
roleScope
為 null。