مشاركة عبر


Session.AddEvent Method (EventInfo)

Adds a new Event object to the session.

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

Syntax

'Declaration
Public Function AddEvent ( _
    eventInfo As EventInfo _
) As Event
'Usage
Dim instance As Session 
Dim eventInfo As EventInfo 
Dim returnValue As Event 

returnValue = instance.AddEvent(eventInfo)
public Event AddEvent(
    EventInfo eventInfo
)
public:
Event^ AddEvent(
    EventInfo^ eventInfo
)
member AddEvent : 
        eventInfo:EventInfo -> Event
public function AddEvent(
    eventInfo : EventInfo
) : Event

Parameters

Return Value

Type: Microsoft.SqlServer.Management.XEvent.Event
The new Event object.

See Also

Reference

Session Class

AddEvent Overload

Microsoft.SqlServer.Management.XEvent Namespace