TargetField Constructor (Target, TargetColumnInfo)

Initializes a new instance of the TargetField class.

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

Syntax

'Declaration
Public Sub New ( _
    parent As Target, _
    targetColumnInfo As TargetColumnInfo _
)
'Usage
Dim parent As Target 
Dim targetColumnInfo As TargetColumnInfo 

Dim instance As New TargetField(parent, _
    targetColumnInfo)
public TargetField(
    Target parent,
    TargetColumnInfo targetColumnInfo
)
public:
TargetField(
    Target^ parent, 
    TargetColumnInfo^ targetColumnInfo
)
new : 
        parent:Target * 
        targetColumnInfo:TargetColumnInfo -> TargetField
public function TargetField(
    parent : Target, 
    targetColumnInfo : TargetColumnInfo
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Parameter parent or targetColumnInfo is null.

XEventException

Parameter targetColumnInfo is invalid.

NullReferenceException

targetColumnInfo parent or grandparent is null, often because it is not enumerated correctly.

See Also

Reference

TargetField Class

TargetField Overload

Microsoft.SqlServer.Management.XEvent Namespace