Método Session.AddEvent (EventInfo)
Adds a new Event object to the session.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)
Sintaxe
'Declaração
Public Function AddEvent ( _
eventInfo As EventInfo _
) As Event
'Uso
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
Parâmetros
- eventInfo
Tipo: Microsoft.SqlServer.Management.XEvent.EventInfo
An EventInfo object.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.XEvent.Event
The new Event object.