Método Session.RemoveEvent
Removes the specified Event object from the session.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)
Sintaxe
'Declaração
Public Function RemoveEvent ( _
evt As Event _
) As Boolean
'Uso
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
Parâmetros
- evt
Tipo: Microsoft.SqlServer.Management.XEvent.Event
The Event object to remove.
Valor de retorno
Tipo: System.Boolean
Returns True if the event is successfully removed, otherwise False.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | Parameter event is null. |