مشاركة عبر


Target.SetTargetInfo Method

Sets the TargetInfo object for a pending target.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Public Sub SetTargetInfo ( _
    targetInfo As TargetInfo _
)
'Usage
Dim instance As Target 
Dim targetInfo As TargetInfo

instance.SetTargetInfo(targetInfo)
public void SetTargetInfo(
    TargetInfo targetInfo
)
public:
void SetTargetInfo(
    TargetInfo^ targetInfo
)
member SetTargetInfo : 
        targetInfo:TargetInfo -> unit
public function SetTargetInfo(
    targetInfo : TargetInfo
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The input targetInfo is null.

XEventException

The Target object is not in pending state.

See Also

Reference

Target Class

Microsoft.SqlServer.Management.XEvent Namespace