Action 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Action() |
初始化 Action 类的新实例。 |
| Action(Event, ActionInfo) |
从 ActionInfo 实例初始化类的新实例 Action 。 |
| Action(Event, String) |
使用给定的 Action 父级和名称初始化类的新实例。 此处的名称应采用 eventModuleId.packagename.eventname 或 packagename.eventname 的形式。 |
Action()
Action(Event, ActionInfo)
从 ActionInfo 实例初始化类的新实例 Action 。
public Action(Microsoft.SqlServer.Management.XEvent.Event parent, Microsoft.SqlServer.Management.XEvent.ActionInfo actionInfo);
new Microsoft.SqlServer.Management.XEvent.Action : Microsoft.SqlServer.Management.XEvent.Event * Microsoft.SqlServer.Management.XEvent.ActionInfo -> Microsoft.SqlServer.Management.XEvent.Action
Public Sub New (parent As Event, actionInfo As ActionInfo)
参数
- parent
- Event
父级。
- actionInfo
- ActionInfo
ActionInfo 对象。
适用于
Action(Event, String)
使用给定的 Action 父级和名称初始化类的新实例。 此处的名称应采用 eventModuleId.packagename.eventname 或 packagename.eventname 的形式。
public Action(Microsoft.SqlServer.Management.XEvent.Event parent, string name);
new Microsoft.SqlServer.Management.XEvent.Action : Microsoft.SqlServer.Management.XEvent.Event * string -> Microsoft.SqlServer.Management.XEvent.Action
Public Sub New (parent As Event, name As String)
参数
- parent
- Event
父级。
- name
- String
名称。
例外
事件名称格式不正确或错误。
参数名称为 null。
尚未设置事件的父级(或祖父母)。