Session.RemoveTarget(Target) Session.RemoveTarget(Target) Method

Definition

Removes the Target object from the session.

public:
 bool RemoveTarget(Microsoft::SqlServer::Management::XEvent::Target ^ target);
public bool RemoveTarget (Microsoft.SqlServer.Management.XEvent.Target target);
Parameters
target
Target Target

The Target object to remove.

Returns

Returns True if the target is successfully removed, otherwise False.

Exceptions

Applies to