Partager via


IPolicyAssignments.ListByResourceAsync(String, CancellationToken) Méthode

Définition

Répertorier les affectations de stratégie de la ressource.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignment>> ListByResourceAsync (string resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyAssignment>>
Public Function ListByResourceAsync (resourceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of IPolicyAssignment))

Paramètres

resourceId
String

Valeur d’ID de ressource.

cancellationToken
CancellationToken

Retours

Liste des affectations de stratégie.

S’applique à