Event.AddAction 方法 (String)
Creates an Action object with the specified name and adds it to the ActionCollection.
命名空間: Microsoft.SqlServer.Management.XEvent
組件: Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)
語法
'宣告
Public Function AddAction ( _
actionName As String _
) As Action
'用途
Dim instance As Event
Dim actionName As String
Dim returnValue As Action
returnValue = instance.AddAction(actionName)
public Action AddAction(
string actionName
)
public:
Action^ AddAction(
String^ actionName
)
member AddAction :
actionName:string -> Action
public function AddAction(
actionName : String
) : Action
參數
- actionName
型別:System.String
Fully qualified name of the Action object.
傳回值
型別:Microsoft.SqlServer.Management.XEvent.Action
The newly-created Action object.