你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApplicationInsightsComponentResource.GetFavoritesAsync 方法

定义

获取 Application Insights 组件中定义的收藏夹列表。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • 操作IdFavorites_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavoritesAsync (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 GetFavoritesAsync : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavoritesAsync : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavoritesAsync (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 AsyncPageable(Of ApplicationInsightsComponentFavorite)

参数

favoriteType
Nullable<FavoriteType>

收藏夹的类型。 值可以是共享的,也可以是用户。

sourceType
Nullable<FavoriteSourceType>

要返回的收藏夹的源类型。 如果遗漏,则源类型默认为“other” (此枚举) 中不存在。

canFetchContent
Nullable<Boolean>

指示是否返回每个适用收藏夹的完整内容的标志。 如果为 false,则仅返回收藏夹的摘要内容。

tags
IEnumerable<String>

返回的每个收藏夹上必须存在的标记。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 ApplicationInsightsComponentFavorite ,可能需要多个服务请求进行迭代。

适用于