Freigeben über


PolicyMetadataCollection.Get(String, CancellationToken) Methode

Definition

Rufen Sie die Metadatenressource für Richtlinien ab.

  • Anforderungspfad/providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Vorgangs-IdPolicyMetadata_GetResource
public virtual Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource> Get (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>
Public Overridable Function Get (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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: