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
该活动来自指定地点发布。
注解
如果请求的位置不再可用,该方法可能会抛弃。