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
發布於指定地點的活動。
備註
若該地點已無法使用,此方法可能會拋棄。