Event.AddAction Método (String)
Creates an Action object with the specified name and adds it to the ActionCollection.
Espacio de nombres: Microsoft.SqlServer.Management.XEvent
Ensamblado: Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Sintaxis
'Declaración
Public Function AddAction ( _
actionName As String _
) As Action
'Uso
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
Parámetros
- actionName
Tipo: System.String
Fully qualified name of the Action object.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.XEvent.Action
The newly-created Action object.