Méthode Event.AddAction (String)
Creates an Action object with the specified name and adds it to the ActionCollection.
Espace de noms : Microsoft.SqlServer.Management.XEvent
Assembly : Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Syntaxe
'Déclaration
Public Function AddAction ( _
actionName As String _
) As Action
'Utilisation
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
Paramètres
- actionName
Type : System.String
Fully qualified name of the Action object.
Valeur de retour
Type : Microsoft.SqlServer.Management.XEvent.Action
The newly-created Action object.