Compartir a través de


ApplicationInsightsComponentResource.UpdateFavoriteAsync Método

Definición

Novedades un favorito que ya se ha agregado a un componente de Application Insights.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
  • IdFavorites_Update de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>> UpdateFavoriteAsync (string favoriteId, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite favoriteProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateFavoriteAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
override this.UpdateFavoriteAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
Public Overridable Function UpdateFavoriteAsync (favoriteId As String, favoriteProperties As ApplicationInsightsComponentFavorite, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentFavorite))

Parámetros

favoriteId
String

Identificador de un favorito específico definido en el componente de Application Insights.

favoriteProperties
ApplicationInsightsComponentFavorite

Propiedades que deben especificarse para actualizar el favorito existente.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

favoriteId es una cadena vacía y se esperaba que no estuviera vacía.

favoriteId o favoriteProperties es null.

Se aplica a