Freigeben über


PolicyMetadataCollection.GetAsync(String, CancellationToken) Methode

Definition

Rufen Sie die Metadatenressource für Richtlinien ab.

  • Anfordern von Path/providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Vorgang IdPolicyMetadata_GetResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>> GetAsync (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
Public Overridable Function GetAsync (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicyMetadataResource))

Parameter

resourceName
String

Der Name der Richtlinienmetadatenressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

resourceName ist NULL.

Gilt für: