次の方法で共有


ApplicationInsightsComponentResource.GetFavorites メソッド

定義

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

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • 操作IdFavorites_List
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavorites (Azure.ResourceManager.ApplicationInsights.Models.FavoriteType? favoriteType = default, Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType? sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IEnumerable<string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavorites (Optional favoriteType As Nullable(Of FavoriteType) = Nothing, Optional sourceType As Nullable(Of FavoriteSourceType) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentFavorite)

パラメーター

favoriteType
Nullable<FavoriteType>

お気に入りの種類。 値には、共有またはユーザーを指定できます。

sourceType
Nullable<FavoriteSourceType>

返すお気に入りのソースの種類。 省略すると、ソースの種類は既定で 'other' になります (この列挙型には存在しません)。

canFetchContent
Nullable<Boolean>

該当する各お気に入りの完全なコンテンツを返すかどうかを示すフラグ。 false の場合は、お気に入りの概要コンテンツのみを返します。

tags
IEnumerable<String>

返される各お気に入りに存在する必要があるタグ。

cancellationToken
CancellationToken

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

戻り値

反復処理するために複数の ApplicationInsightsComponentFavorite サービス要求を受け取る可能性がある のコレクション。

適用対象