Event.AddAction 方法 (ActionInfo)
Creates an Action object from an ActionInfo object and adds it to the ActionCollection.
命名空間: Microsoft.SqlServer.Management.XEvent
組件: Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)
語法
'宣告
Public Function AddAction ( _
actionInfo As ActionInfo _
) As Action
'用途
Dim instance As Event
Dim actionInfo As ActionInfo
Dim returnValue As Action
returnValue = instance.AddAction(actionInfo)
public Action AddAction(
ActionInfo actionInfo
)
public:
Action^ AddAction(
ActionInfo^ actionInfo
)
member AddAction :
actionInfo:ActionInfo -> Action
public function AddAction(
actionInfo : ActionInfo
) : Action
參數
- actionInfo
型別:Microsoft.SqlServer.Management.XEvent.ActionInfo
The ActionInfo object that specifies the Action object to add.
傳回值
型別:Microsoft.SqlServer.Management.XEvent.Action
The newly-created Action object.