Compartilhar via


Session.RemoveTarget(Target) Method

Definition

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.

Applies to