IEventProvider<T>.RetrieveEvent(EventLocator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.