Compartir a través de


IPolicyAssignments.ListByResourceAsync(String, CancellationToken) Método

Definición

Enumera las asignaciones de directiva del recurso.

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))

Parámetros

resourceId
String

Valor del identificador de recurso.

cancellationToken
CancellationToken

Devoluciones

Lista de asignaciones de directivas.

Se aplica a