Partilhar via


Event.AddAction Method

Definition

Overloads

AddAction(ActionInfo)

Create an action from the ActionInfo and add it into the action collection.

AddAction(String)

Create an action with the specify name and add it to the actions.

AddAction(ActionInfo)

Create an action from the ActionInfo and add it into the action collection.

public Microsoft.SqlServer.Management.XEvent.Action AddAction (Microsoft.SqlServer.Management.XEvent.ActionInfo actionInfo);
member this.AddAction : Microsoft.SqlServer.Management.XEvent.ActionInfo -> Microsoft.SqlServer.Management.XEvent.Action
Public Function AddAction (actionInfo As ActionInfo) As Action

Parameters

actionInfo
ActionInfo

The ActionInfo object.

Returns

The newly created action.

Applies to

AddAction(String)

Create an action with the specify name and add it to the actions.

public Microsoft.SqlServer.Management.XEvent.Action AddAction (string actionName);
member this.AddAction : string -> Microsoft.SqlServer.Management.XEvent.Action
Public Function AddAction (actionName As String) As Action

Parameters

actionName
String

Full qulified name of the action.

Returns

The new created action

Applies to