EventTelemetry 类

定义

用于跟踪事件的遥测类型。

public ref class EventTelemetry sealed : Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetry, Microsoft::VisualStudio::ApplicationInsights::DataContracts::ISupportProperties
public sealed class EventTelemetry : Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetry, Microsoft.VisualStudio.ApplicationInsights.DataContracts.ISupportProperties
type EventTelemetry = class
    interface ITelemetry
    interface ISupportProperties
Public NotInheritable Class EventTelemetry
Implements ISupportProperties, ITelemetry
继承
EventTelemetry
实现

构造函数

EventTelemetry()

初始化 EventTelemetry 类的新实例。

EventTelemetry(String)

用给定的 EventTelemetry 初始化 name 类的新实例。

属性

CommonSchemaVersion

获取或设置此事件的公共架构版本,用于确定数据形状和传输终结点

Context

获取与当前遥测项关联的上下文。

Metrics

获取应用程序定义的事件指标的字典。

Name

获取或设置事件名。

Properties

获取应用程序定义的属性名称和值的字典,提供有关此事件的其他信息。

Sequence

获取或设置定义遥测项的绝对顺序的值。

Timestamp

获取或设置记录事件的日期和时间。

显式接口实现

ITelemetry.Sanitize()

根据约束清理属性。

适用于