Share via


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

ApplicationInsightsExtensions.GetMyWorkbooksAsync 方法

定义

获取在指定订阅和类别中定义的所有专用工作簿。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks
  • 操作IdMyWorkbooks_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.MyWorkbookResource> GetMyWorkbooksAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.ApplicationInsights.Models.CategoryType category, System.Collections.Generic.IEnumerable<string> tags = default, bool? canFetchContent = default, System.Threading.CancellationToken cancellationToken = default);
static member GetMyWorkbooksAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.ApplicationInsights.Models.CategoryType * seq<string> * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.MyWorkbookResource>
<Extension()>
Public Function GetMyWorkbooksAsync (subscriptionResource As SubscriptionResource, category As CategoryType, Optional tags As IEnumerable(Of String) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MyWorkbookResource)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

category
CategoryType

要返回的工作簿的类别。

tags
IEnumerable<String>

标记显示在返回的每个工作簿上。

canFetchContent
Nullable<Boolean>

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 MyWorkbookResource ,可能需要循环访问多个服务请求。

适用于