語言

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

發布於指定地點的活動。

備註

若該地點已無法使用,此方法可能會拋棄。

適用於