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

FavoritesOperationsExtensions.AddAsync 方法

定义

将新收藏夹添加到 Application Insights 组件。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite> AddAsync(this Microsoft.Azure.Management.ApplicationInsights.Management.IFavoritesOperations operations, string resourceGroupName, string resourceName, string favoriteId, Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite favoriteProperties, System.Threading.CancellationToken cancellationToken = default);
static member AddAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IFavoritesOperations * string * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite>
<Extension()>
Public Function AddAsync (operations As IFavoritesOperations, resourceGroupName As String, resourceName As String, favoriteId As String, favoriteProperties As ApplicationInsightsComponentFavorite, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApplicationInsightsComponentFavorite)

参数

operations
IFavoritesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

resourceName
String

Application Insights 组件资源的名称。

favoriteId
String

Application Insights 组件中定义的特定收藏夹的 ID

favoriteProperties
ApplicationInsightsComponentFavorite

需要指定以创建新收藏夹并将其添加到 Application Insights 组件的属性。

cancellationToken
CancellationToken

取消标记。

返回

适用于