Compartir a través de


Session.RemoveEvent Método

Removes the specified Event object from the session.

Espacio de nombres:  Microsoft.SqlServer.Management.XEvent
Ensamblado:  Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)

Sintaxis

'Declaración
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

Valor devuelto

Tipo: System.Boolean
Returns True if the event is successfully removed, otherwise False.

Excepciones

Excepción Condición
ArgumentNullException

Parameter event is null.

Vea también

Referencia

Session Clase

Espacio de nombres Microsoft.SqlServer.Management.XEvent