Método Event.AddAction (String)
Creates an Action object with the specified name and adds it to the ActionCollection.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)
Sintaxe
'Declaração
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 de retorno
Tipo: Microsoft.SqlServer.Management.XEvent.Action
The newly-created Action object.