共用方式為


KeyVaultAccessControlClient.GetRoleDefinitionsAsync 方法

定義

取得範圍和更新版本適用的所有角色定義。

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

參數

roleScope
KeyVaultRoleScope

角色定義的範圍。

cancellationToken
CancellationToken

控制 CancellationToken 要求存留期的 。

傳回

例外狀況

伺服器傳回錯誤。 如需從伺服器傳回的詳細資料,請參閱 Message

roleScope 為 null。

適用於