Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initializes a new instance of the Action class with parent XEvent object and the name in form of eventModuleId.packagename.eventname or packagename.eventname.
Espace de noms : Microsoft.SqlServer.Management.XEvent
Assembly : Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Syntaxe
'Déclaration
Public Sub New ( _
parent As Event, _
name As String _
)
'Utilisation
Dim parent As Event
Dim name As String
Dim instance As New Action(parent, _
name)
public Action(
Event parent,
string name
)
public:
Action(
Event^ parent,
String^ name
)
new :
parent:Event *
name:string -> Action
public function Action(
parent : Event,
name : String
)
Paramètres
- parent
Type : Microsoft.SqlServer.Management.XEvent.Event
The parent object of the XEventobject.
- name
Type : System.String
The name as an eventModuleId.packagename.eventname object or packagename.eventname object.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Parameter name is null. |
| XEventException | The event name is malformed or wrong. |
| NullReferenceException | The parent, or grandparent, of the XEvent object is not set. |