Compartir a través de


Session.RemoveTarget Método

Removes the Target 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 RemoveTarget ( _
    target As Target _
) As Boolean
'Uso
Dim instance As Session 
Dim target As Target 
Dim returnValue As Boolean 

returnValue = instance.RemoveTarget(target)
public bool RemoveTarget(
    Target target
)
public:
bool RemoveTarget(
    Target^ target
)
member RemoveTarget : 
        target:Target -> bool
public function RemoveTarget(
    target : Target
) : boolean

Parámetros

Valor devuelto

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

Excepciones

Excepción Condición
ArgumentNullException

Parameter target is null.

Vea también

Referencia

Session Clase

Espacio de nombres Microsoft.SqlServer.Management.XEvent