Session.RemoveTarget(Target) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the target object from this session.
public bool RemoveTarget (Microsoft.SqlServer.Management.XEvent.Target target);
member this.RemoveTarget : Microsoft.SqlServer.Management.XEvent.Target -> bool
Public Function RemoveTarget (target As Target) As Boolean
Parameters
- target
- Target
The target object.
Returns
Returns whether the target is successfully removed.
Exceptions
Parameter target is null.