Méthode Session.RemoveEvent
Removes the specified Event object from the session.
Espace de noms : Microsoft.SqlServer.Management.XEvent
Assembly : Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Syntaxe
'Déclaration
Public Function RemoveEvent ( _
evt As Event _
) As Boolean
'Utilisation
Dim instance As Session
Dim evt As Event
Dim returnValue As Boolean
returnValue = instance.RemoveEvent(evt)
public bool RemoveEvent(
Event evt
)
public:
bool RemoveEvent(
Event^ evt
)
member RemoveEvent :
evt:Event -> bool
public function RemoveEvent(
evt : Event
) : boolean
Paramètres
- evt
Type : Microsoft.SqlServer.Management.XEvent.Event
The Event object to remove.
Valeur de retour
Type : System.Boolean
Returns True if the event is successfully removed, otherwise False.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Parameter event is null. |