Share via


Target Constructors

Definition

Overloads

Target()

Initializes a new instance of the Target class. Empty constructor is an convention is a convention in SFC.

Target(Session, TargetInfo)

Initializes a new instance of the Event class from an TargetInfo object.

Target(Session, String)

Initializes a new instance of the Target class with given parent and name.

Target()

Initializes a new instance of the Target class. Empty constructor is an convention is a convention in SFC.

public Target ();
Public Sub New ()

Applies to

Target(Session, TargetInfo)

Initializes a new instance of the Event class from an TargetInfo object.

public Target (Microsoft.SqlServer.Management.XEvent.Session parent, Microsoft.SqlServer.Management.XEvent.TargetInfo targetInfo);
new Microsoft.SqlServer.Management.XEvent.Target : Microsoft.SqlServer.Management.XEvent.Session * Microsoft.SqlServer.Management.XEvent.TargetInfo -> Microsoft.SqlServer.Management.XEvent.Target
Public Sub New (parent As Session, targetInfo As TargetInfo)

Parameters

parent
Session

The parent.

targetInfo
TargetInfo

The target info.

Applies to

Target(Session, String)

Initializes a new instance of the Target class with given parent and name.

public Target (Microsoft.SqlServer.Management.XEvent.Session parent, string name);
new Microsoft.SqlServer.Management.XEvent.Target : Microsoft.SqlServer.Management.XEvent.Session * string -> Microsoft.SqlServer.Management.XEvent.Target
Public Sub New (parent As Session, name As String)

Parameters

parent
Session

The parent.

name
String

The full qulified name of the Target.

Exceptions

The target name is malformed or wrong.

Parameter name is null

The parent of Session is not set yet.

Applies to