Partager via


Méthode IEventProvider<T>.RetrieveEvent

Gets an event at the specified event location without changing the point of enumeration.

Espace de noms :  Microsoft.SqlServer.XEvent.Linq
Assembly :  Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)

Syntaxe

'Déclaration
Function RetrieveEvent ( _
    eventLocation As EventLocator _
) As T
'Utilisation
Dim instance As IEventProvider 
Dim eventLocation As EventLocator 
Dim returnValue As T

returnValue = instance.RetrieveEvent(eventLocation)
T RetrieveEvent(
    EventLocator eventLocation
)
T RetrieveEvent(
    EventLocator^ eventLocation
)
abstract RetrieveEvent : 
        eventLocation:EventLocator -> 'T 
function RetrieveEvent(
    eventLocation : EventLocator
) : T

Paramètres

Valeur de retour

Type : T
Published event from the location specified.

Notes

This method may throw if the requested location is no longer available.

Voir aussi

Référence

IEventProvider<T> Interface

Espace de noms Microsoft.SqlServer.XEvent.Linq