Compartilhar via


FavoritesOperationsExtensions.AddAsync Método

Definição

Adiciona um novo favorito a um componente do 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)

Parâmetros

operations
IFavoritesOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos. O nome diferencia maiúsculas de minúsculas.

resourceName
String

O nome do recurso de componente do Application Insights.

favoriteId
String

A ID de um favorito específico definido no componente application insights

favoriteProperties
ApplicationInsightsComponentFavorite

Propriedades que precisam ser especificadas para criar um novo favorito e adicioná-lo a um componente do Application Insights.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a