TargetField Constructor (Target, TargetColumnInfo)
Initializes a new instance of the TargetField class.
Espacio de nombres: Microsoft.SqlServer.Management.XEvent
Ensamblado: Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Sintaxis
'Declaración
Public Sub New ( _
parent As Target, _
targetColumnInfo As TargetColumnInfo _
)
'Uso
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
)
Parámetros
- parent
Tipo: Microsoft.SqlServer.Management.XEvent.Target
The parent Target object.
- targetColumnInfo
Tipo: Microsoft.SqlServer.Management.XEvent.TargetColumnInfo
The TargetColumnInfo object.
Excepciones
Excepción | Condición |
---|---|
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. |