次の方法で共有


ApplicationInsightsComponentResource.UpdateFavoriteAsync メソッド

定義

Application Insights コンポーネントに既に追加されているお気に入りを更新します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
  • 操作IdFavorites_Update
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))

パラメーター

favoriteId
String

Application Insights コンポーネントで定義されている特定のお気に入りの ID。

favoriteProperties
ApplicationInsightsComponentFavorite

既存のお気に入りを更新するために指定する必要があるプロパティ。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

favoriteId は空の文字列であり、空でないと想定されていました。

favoriteId または favoriteProperties が null です。

適用対象