IEventProvider<T>.RetrieveEvent Method

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

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

Syntax

'Declaration
Function RetrieveEvent ( _
    eventLocation As EventLocator _
) As T
'Usage
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

Parameters

Return Value

Type: T
Published event from the location specified.

Remarks

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

See Also

Reference

IEventProvider<T> Interface

Microsoft.SqlServer.XEvent.Linq Namespace