Método Session.AddTarget (TargetInfo)
Adds a new Target object to the session.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)
Sintaxe
'Declaração
Public Function AddTarget ( _
targetInfo As TargetInfo _
) As Target
'Uso
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
Parâmetros
- targetInfo
Tipo: Microsoft.SqlServer.Management.XEvent.TargetInfo
A TargetInfo object.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.XEvent.Target
The new Target object.