Dela via


KeyVaultAccessControlClient.GetRoleAssignmentsAsync Metod

Definition

Hämtar rolltilldelningarna för ett omfång.

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)

Parametrar

roleScope
KeyVaultRoleScope

Rolltilldelningarnas omfång.

cancellationToken
CancellationToken

En CancellationToken kontroll av begärans livslängd.

Returer

Undantag

Servern returnerade ett fel. Se Message för information som returneras från servern.

roleScope är null.

Gäller för