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

IFavoritesOperations.ListWithHttpMessagesAsync 方法

定义

获取 Application Insights 组件中定义的收藏夹列表。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite>>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.FavoriteType? favoriteType = default, string sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IList<string> tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * string * Nullable<Microsoft.Azure.Management.ApplicationInsights.Management.Models.FavoriteType> * string * Nullable<bool> * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentFavorite>>>
Public Function ListWithHttpMessagesAsync (resourceGroupName As String, resourceName As String, Optional favoriteType As Nullable(Of FavoriteType) = Nothing, Optional sourceType As String = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IList(Of String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IList(Of ApplicationInsightsComponentFavorite)))

参数

resourceGroupName
String

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

resourceName
String

Application Insights 组件资源的名称。

favoriteType
Nullable<FavoriteType>

收藏夹的类型。 值可以是共享的,也可以是用户。 可能的值包括:“shared”、“user”

sourceType
String

要返回的收藏夹的源类型。 如果遗漏,则源类型默认为“other” (此枚举) 中不存在。 可能的值包括:“retention”、“notebook”、“sessions”、“events”、“userflows”、“漏斗”、“影响”、“分段”

canFetchContent
Nullable<Boolean>

指示是否返回每个适用收藏夹的完整内容的标志。 如果为 false,则仅返回收藏夹的摘要内容。

tags
IList<String>

返回的每个收藏夹上必须存在的标记。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

适用于