Compartilhar via


Construtor EventField (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 (em Microsoft.SqlServer.Management.XEvent.dll)

Sintaxe

'Declaração
Public Sub New ( _
    parent As Event, _
    eventColumnInfo As EventColumnInfo _
)
'Uso
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
)

Parâmetros

Exceções

Exceção Condição
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.

Consulte também

Referência

EventField Classe

Sobrecarregado EventField

Namespace Microsoft.SqlServer.Management.XEvent