Share via


Event.SetEventInfo Method

Sets the EventInfo object for a pending XEvent object.

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

Syntax

'Declaration
Public Sub SetEventInfo ( _
    eventInfo As EventInfo _
)
'Usage
Dim instance As Event 
Dim eventInfo As EventInfo

instance.SetEventInfo(eventInfo)
public void SetEventInfo(
    EventInfo eventInfo
)
public:
void SetEventInfo(
    EventInfo^ eventInfo
)
member SetEventInfo : 
        eventInfo:EventInfo -> unit
public function SetEventInfo(
    eventInfo : EventInfo
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The input EventInfo object is null.

XEventException

The Event object is not in the pending state.

See Also

Reference

Event Class

Microsoft.SqlServer.Management.XEvent Namespace