语言

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

该活动来自指定地点发布。

注解

如果请求的位置不再可用,该方法可能会抛弃。

适用于