Partilhar via


ApplicationInsightsComponentResource.AddFavorite Método

Definição

Adiciona um novo favorito a um componente do Application Insights.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
  • Operação IdFavorites_Add
public virtual Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> AddFavorite (string favoriteId, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite favoriteProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member AddFavorite : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.AddFavorite : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function AddFavorite (favoriteId As String, favoriteProperties As ApplicationInsightsComponentFavorite, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ApplicationInsightsComponentFavorite)

Parâmetros

favoriteId
String

A ID de um favorito específico definido no componente application insights.

favoriteProperties
ApplicationInsightsComponentFavorite

Propriedades que precisam ser especificadas para criar um novo favorito e adicioná-lo a um componente do Application Insights.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

favoriteId ou favoriteProperties é nulo.

Aplica-se a