Compartir a través de


PolicyMetadataOperationsExtensions.GetResourceAsync Método

Definición

Obtiene el recurso de metadatos de directiva.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.PolicyMetadata> GetResourceAsync (this Microsoft.Azure.Management.PolicyInsights.IPolicyMetadataOperations operations, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetResourceAsync : Microsoft.Azure.Management.PolicyInsights.IPolicyMetadataOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.PolicyMetadata>
<Extension()>
Public Function GetResourceAsync (operations As IPolicyMetadataOperations, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PolicyMetadata)

Parámetros

operations
IPolicyMetadataOperations

El grupo de operaciones de este método de extensión.

resourceName
String

Nombre del recurso de metadatos de directiva.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a