EventField Constructor (Event, EventColumnInfo)

Creates a new instance of the EventField class from an Event object and an EventColumnInfo object.

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

Syntax

'Declaration
Public Sub New ( _
    parent As Event, _
    eventColumnInfo As EventColumnInfo _
)
'Usage
Dim parent As Event 
Dim eventColumnInfo As EventColumnInfo 

Dim instance As New EventField(parent, _
    eventColumnInfo)
public EventField(
    Event parent,
    EventColumnInfo eventColumnInfo
)
public:
EventField(
    Event^ parent, 
    EventColumnInfo^ eventColumnInfo
)
new : 
        parent:Event * 
        eventColumnInfo:EventColumnInfo -> EventField
public function EventField(
    parent : Event, 
    eventColumnInfo : EventColumnInfo
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Parameter parent Event or EventColumnInfo is null.

XEventException

Parameter EventColumnInfo is invalid.

NullReferenceException

The EventColumnInfo parent (or grandparent) is null, usually because it is not enumerated correctly.

See Also

Reference

EventField Class

EventField Overload

Microsoft.SqlServer.Management.XEvent Namespace