Método Session.RemoveTarget
Removes the Target 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 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
- target
Tipo: Microsoft.SqlServer.Management.XEvent.Target
The Target object to remove.
Valor de retorno
Tipo: System.Boolean
Returns True if the target is successfully removed, otherwise False.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | Parameter target is null. |