Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the Target object from the session.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)
Syntax
'Declaration
Public Function RemoveTarget ( _
target As Target _
) As Boolean
'Usage
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
Parameters
- target
Type: Microsoft.SqlServer.Management.XEvent.Target
The Target object to remove.
Return Value
Type: System.Boolean
Returns True if the target is successfully removed, otherwise False.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Parameter target is null. |