你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ApplicationInsightsComponentResource.UpdateFavoriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates a favorite that has already been added to an Application Insights component.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
- Operation Id: Favorites_Update
- Default Api Version: 2015-05-01
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>> UpdateFavoriteAsync(string favoriteId, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite favoriteProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateFavoriteAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
override this.UpdateFavoriteAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>>
Public Overridable Function UpdateFavoriteAsync (favoriteId As String, favoriteProperties As ApplicationInsightsComponentFavorite, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentFavorite))
Parameters
- favoriteId
- String
The Id of a specific favorite defined in the Application Insights component.
- favoriteProperties
- ApplicationInsightsComponentFavorite
Properties that need to be specified to update the existing favorite.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
favoriteId
is an empty string, and was expected to be non-empty.
favoriteId
or favoriteProperties
is null.