Méthode Session.AddTarget (TargetInfo)
Adds a new Target object to 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 AddTarget ( _
targetInfo As TargetInfo _
) As Target
'Utilisation
Dim instance As Session
Dim targetInfo As TargetInfo
Dim returnValue As Target
returnValue = instance.AddTarget(targetInfo)
public Target AddTarget(
TargetInfo targetInfo
)
public:
Target^ AddTarget(
TargetInfo^ targetInfo
)
member AddTarget :
targetInfo:TargetInfo -> Target
public function AddTarget(
targetInfo : TargetInfo
) : Target
Paramètres
- targetInfo
Type : Microsoft.SqlServer.Management.XEvent.TargetInfo
A TargetInfo object.
Valeur de retour
Type : Microsoft.SqlServer.Management.XEvent.Target
The new Target object.