Compartir a través de


FavoritesOperationsExtensions.AddAsync Método

Definición

Agrega nuevos favoritos a un componente de 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

El grupo de operaciones de este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos. El nombre distingue mayúsculas de minúsculas.

resourceName
String

Nombre del recurso de componente de Application Insights.

favoriteId
String

Identificador de un favorito específico definido en el componente de Application Insights

favoriteProperties
ApplicationInsightsComponentFavorite

Propiedades que deben especificarse para crear un nuevo favorito y agregarlo a un componente de Application Insights.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a