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

ApplicationInsightsComponentResource.GetFavoritesAsync Method

Definition

Overloads

GetFavoritesAsync(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Gets a list of favorites defined within an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
GetFavoritesAsync(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Gets a list of favorites defined within an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01

GetFavoritesAsync(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Source:
ApplicationInsightsComponentResource.cs

Gets a list of favorites defined within an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavoritesAsync (Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType? 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.ComponentFavoriteType> * 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.ComponentFavoriteType> * 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 ComponentFavoriteType) = 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)

Parameters

favoriteType
Nullable<ComponentFavoriteType>

The type of favorite. Value can be either shared or user.

sourceType
Nullable<FavoriteSourceType>

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).

canFetchContent
Nullable<Boolean>

Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.

tags
IEnumerable<String>

Tags that must be present on each favorite returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.

Applies to

GetFavoritesAsync(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)

Source:
ApplicationInsightsComponentResource.cs

Gets a list of favorites defined within an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
  • Operation Id: Favorites_List
  • Default Api Version: 2015-05-01
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)

Parameters

favoriteType
Nullable<FavoriteType>

The type of favorite. Value can be either shared or user.

sourceType
Nullable<FavoriteSourceType>

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).

canFetchContent
Nullable<Boolean>

Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.

tags
IEnumerable<String>

Tags that must be present on each favorite returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.

Applies to