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

EventsExtensions.GetPageViewEventAsync 方法

定义

获取页面视图事件

public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsPageViewResult>> GetPageViewEventAsync (this Microsoft.Azure.ApplicationInsights.Query.IEvents operations, string appId, string eventId, string timespan = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPageViewEventAsync : Microsoft.Azure.ApplicationInsights.Query.IEvents * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Query.Models.EventsResults<Microsoft.Azure.ApplicationInsights.Query.Models.EventsPageViewResult>>
<Extension()>
Public Function GetPageViewEventAsync (operations As IEvents, appId As String, eventId As String, Optional timespan As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventsResults(Of EventsPageViewResult))

参数

operations
IEvents

此扩展方法的操作组。

appId
String

应用程序的 ID。 这是Azure 门户“API 访问设置”边栏选项卡中的应用程序 ID。

eventId
String

事件的 ID。

timespan
String

可选。 检索事件的时间跨度。 这是 ISO8601 时间段值。 除了 Odata 表达式中指定的任何时间跨度外,还会应用此时间跨度。

cancellationToken
CancellationToken

取消标记。

返回

注解

获取单个页面视图事件的数据

适用于