IEventProvider<T>.RetrieveEvent(EventLocator) 方法

定义

获取未更改枚举点的指定事件位置处的事件。

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

参数

eventLocation
EventLocator

以前从事件提供程序获取的事件位置对象。 事件位置从 PublishedEvent 对象的 Location 属性获取。

返回

T

来自指定位置的已发布事件。

注解

如果请求的位置不再可用,此方法可能会引发。

适用于