次の方法で共有


ApplicationInsightsComponentResource.GetFavoriteAsync メソッド

定義

Application Insights コンポーネント内で定義されている FavoriteId によって 1 つのお気に入りを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
  • 操作IdFavorites_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>> GetFavoriteAsync (string favoriteId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavoriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
override this.GetFavoriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
Public Overridable Function GetFavoriteAsync (favoriteId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentFavorite))

パラメーター

favoriteId
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

favoriteId が null です。

適用対象