Freigeben über


PolicyInsightsExtensions.GetPolicyMetadataAsync Methode

Definition

Rufen Sie die Metadatenressource für Richtlinien ab.

  • Anforderungspfad/providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Vorgangs-IdPolicyMetadata_GetResource
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>> GetPolicyMetadataAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyMetadataAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
<Extension()>
Public Function GetPolicyMetadataAsync (tenantResource As TenantResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicyMetadataResource))

Parameter

tenantResource
TenantResource

Der TenantResource instance die -Methode ausgeführt wird.

resourceName
String

Der Name der Richtlinienmetadatenressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

resourceName ist NULL.

Gilt für: