共用方式為


KeyVaultAccessControlClient.GetRoleDefinition 方法

定義

取得特定的角色定義。

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

參數

roleScope
KeyVaultRoleScope

角色定義的範圍。

roleDefinitionName
Guid

角色定義名稱。

cancellationToken
CancellationToken

CancellationToken控制要求存留期的 。

傳回

例外狀況

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

roleScope 為 null。

適用於