IEventProvider<T>.RetrieveEvent(EventLocator) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取未更改枚举点的指定事件位置处的事件。
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
来自指定位置的已发布事件。
注解
如果请求的位置不再可用,此方法可能会引发。