Partilhar via


CostManagementExtensions.GetCostManagementViewsAsync Método

Definição

Obtém a exibição do escopo definido pelo nome da exibição.

  • Caminho da Solicitação/{scope}/providers/Microsoft.CostManagement/views/{viewName}
  • Operação IdViews_GetByScope
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.CostManagementViewsResource>> GetCostManagementViewsAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string viewName, System.Threading.CancellationToken cancellationToken = default);
static member GetCostManagementViewsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.CostManagementViewsResource>>
<Extension()>
Public Function GetCostManagementViewsAsync (client As ArmClient, scope As ResourceIdentifier, viewName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CostManagementViewsResource))

Parâmetros

client
ArmClient

A ArmClient instância em que o método será executado.

scope
ResourceIdentifier

O escopo no qual o recurso será aplicado.

viewName
String

Nome da exibição.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

viewName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

viewName é nulo.

Aplica-se a