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.