Share via


IEventProvider<T>.RetrieveEvent(EventLocator) Method

Definition

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

public:
 T RetrieveEvent(Microsoft::SqlServer::XEvent::Linq::EventLocator ^ eventLocation);
public T RetrieveEvent (Microsoft.SqlServer.XEvent.Linq.EventLocator eventLocation);
abstract member RetrieveEvent : Microsoft.SqlServer.XEvent.Linq.EventLocator -> 'T
Public Function RetrieveEvent (eventLocation As EventLocator) As T

Parameters

eventLocation
EventLocator

Event location object previously obtained from the event provider. Event locations are obtained from the Location property of PublishedEvent objects.

Returns

T

Published event from the location specified.

Remarks

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

Applies to