Méthode Session.RemoveTarget
Removes the Target 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 RemoveTarget ( _
target As Target _
) As Boolean
'Utilisation
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
Paramètres
- target
Type : Microsoft.SqlServer.Management.XEvent.Target
The Target object to remove.
Valeur de retour
Type : System.Boolean
Returns True if the target is successfully removed, otherwise False.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Parameter target is null. |