共用方式為


IEventProvider<T>.RetrieveEvent 方法

Gets an event at the specified event location without changing the point of enumeration.

命名空間:  Microsoft.SqlServer.XEvent.Linq
組件:  Microsoft.SqlServer.XEvent.Linq (在 Microsoft.SqlServer.XEvent.Linq.dll 中)

語法

'宣告
Function RetrieveEvent ( _
    eventLocation As EventLocator _
) As T
'用途
Dim instance As IEventProvider 
Dim eventLocation As EventLocator 
Dim returnValue As T

returnValue = instance.RetrieveEvent(eventLocation)
T RetrieveEvent(
    EventLocator eventLocation
)
T RetrieveEvent(
    EventLocator^ eventLocation
)
abstract RetrieveEvent : 
        eventLocation:EventLocator -> 'T 
function RetrieveEvent(
    eventLocation : EventLocator
) : T

參數

傳回值

型別:T
Published event from the location specified.

備註

This method may throw if the requested location is no longer available.

請參閱

參考

IEventProvider<T> 介面

Microsoft.SqlServer.XEvent.Linq 命名空間