Compartilhar via


PolicyMetadataCollection.Get(String, CancellationToken) Método

Definição

Obter recurso de metadados de política.

  • Caminho da Solicitação/provedores/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • IdPolicyMetadata_GetResource de operação
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)

Parâmetros

resourceName
String

O nome do recurso de metadados de política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

resourceName é nulo.

Aplica-se a