Microsoft.SqlServer.Management.XEvent 命名空间

类

名称 说明
Action

Action 的 RunTime 类。 此类的每个实例都表示sys.server_event_session_actions中的一行。

Action.Key

用于标识的键类。

ActionCollection

Action 的 SFC 集合类。

ActionInfo

操作的元数据。

ActionInfo.Key

用于标识的键类。

ActionInfoCollection

ActionInfo 的 SFC 集合类。

BaseXEStore

XEStore 是所有元数据类和运行时类的根。

BaseXEStore.Key
BaseXEStore.ObjectMetadata

通过元数据层次结构对象提供帮助程序方法

DataEventColumnInfo

EventInfo 对象可能具有三种类型的列:可自定义、数据、只读。 DataEventColumnInfo 对象重新发送 EventInfo 对象的数据列,可在 PredOperand 中使用。

DataEventColumnInfo.Key
DataEventColumnInfoCollection

这是 DataEventColumnInfo 的集合类。

Event

Event 的运行时类。 此类的每个实例都表示sys.server_event_session_events中的一行。

Event.Key

用于标识的键类。

EventCollection

Event 的 SFC 集合类。

EventColumnInfo

EventInfo 对象可能具有三种类型的列:可自定义、数据、只读。 EventColumnInfo 对象重新发送 EventInfo 对象的可自定义列。

EventColumnInfo.Key
EventColumnInfoCollection

这是 EventColumnInfo 的集合类。

EventField

EventField 对象在sys.server_event_session_fields中重新发送行。

EventField.Key
EventFieldCollection

这是 EventField 的集合类。

EventInfo

Event 的元数据类。

EventInfo.Key

用于标识的键类。

EventInfoCollection

EventInfo 的 SFC 集合类。

MapInfo

Map 的元数据类

MapInfo.Key

用于标识的键类。

MapInfoCollection

MapInfo 的 SFC 集合类。

MapValueInfo

MapValueInfo 类表示sys.dm_xe_map_values中的记录。

MapValueInfo.Key

内部使用的密钥类

MapValueInfoCollection

这是 MapValueInfo 的集合类。

MethodContext
MethodTraceContext
Package

包的元数据类。

Package.Key

用于标识的键类。

PackageCollection

Package 的 SFC 集合类

PredCompareExpr

PredCompareExpr 类表示表达式,如 sqlserver.database_id=7

PredCompareInfo

Pred_Compare的元数据类

PredCompareInfo.Key

用于标识的键类。

PredCompareInfoCollection

PredCompareInfo 的 SFC 集合类。

PredExpr

所有谓词表达式的基类。

PredFunctionExpr

谓词中函数表达式的类。 函数表达式如下所示:Pred_Compare(操作数、值),其中操作数是 PredOperand 的实例,值是 PredValue 的实例。

Predicate

谓词是所有谓词相关类的基类。

PredLogicalExpr

PredLogicalExpr 类不能应用于一个 PredExpr 或两个 PredExprs 上的 AND/OR

PredOperand

谓词操作数的类。 谓词操作数可以是事件列或pred_source。

PredSourceInfo

PredSourceInfo 类表示sys.dm_xe_objects中的pred_source对象。

PredSourceInfo.Key

内部使用的密钥类

PredSourceInfoCollection

这是 PredSourceInfo 的集合类。

PredValue

PredValue 表示是 PredCompareExpr 中的右值或 PredFunctionExpr 中的第二个参数

ReadOnlyEventColumnInfo

EventInfo 对象可能具有三种类型的列:可自定义、数据、只读。 ReadOnlyEventColumnInfo 对象重新发送 EventInfo 对象的只读列。

ReadOnlyEventColumnInfo.Key
ReadOnlyEventColumnInfoCollection

这是 ReadOnlyEventColumnInfo 的集合类。

Session

会话是与之交互的主要对象用户代码。 Session 对象表示sys.server_event_sessions中的一行,并在启动时包含来自sys.dm_xe_sessions的某些数据。

Session.Key

内部使用的密钥类

SessionCollection

这是会话的集合。

SessionProviderBase

用于会话的 Sql 提供程序。

Target

Target 的运行时类。 此类的每个实例都表示sys.server_event_session_targets中的一行。

Target.Key

用于标识的键类。

TargetCollection

Target 的 SFC 集合类。

TargetColumnInfo

TargetInfo 目前只有一种类型的列:可自定义列。 TargetColumnInfo 对象重新发送 TargetInfo 对象的可自定义列。

TargetColumnInfo.Key

用于标识的键类。

TargetColumnInfoCollection

TargetColumnInfo 的 SFC 集合类。

TargetField

TargetField 对象重新发送sys.server_event_session_fields中的行。

TargetField.Key

用于标识的键类。

TargetFieldCollection

TargetField 的 SFC 集合类。

TargetInfo

TargetInfo 类表示sys.dm_xe_objects中的目标对象。

TargetInfo.Key

内部使用的密钥类

TargetInfoCollection

这是 TargetInfo 对象的集合。

TraceContext
TypeInfo

TypeInfo 类表示sys.dm_xe_objects中的类型对象。

TypeInfo.Key

内部使用的密钥类

TypeInfoCollection

这是 TypeInfo 的集合类。

XEStore

XEStore 是所有元数据类和运行时类的根。

XEStore.ServerKey
XEUtils

提供用于脚本的帮助程序方法。

XEventException

所有 XEvent 异常类的基异常类

接口

名称 说明
IEventProvider

定义组件提供程序为事件(事件运行时类)实现的接口。

ISessionObject

事件和目标的常见接口部分

ISessionProvider

定义组件提供程序为会话实现的接口,主对象用户代码与之交互。

ITargetProvider

定义组件提供程序为 Target 实现的接口,即 Target 的运行时类

IXEObjectInfo

Package 的子对象的接口

IXEStoreProvider

定义组件提供程序为 XEStore 实现的接口,该接口是所有元数据类和运行时类的根。

枚举

名称 说明
PredCompareExpr.ComparatorType

定义 PredOperand 和 PredValue 之间可以使用哪些比较器

PredLogicalExpr.LogicalOperatorType

定义可在 PredLogicalExpr 中使用的逻辑运算符

Session.EventRetentionModeEnum

事件保留模式描述如何处理事件丢失。

Session.MemoryPartitionModeEnum

内存分区模式描述创建事件缓冲区的内存中的位置。