列挙の位置を変更せずに、指定したイベントの場所にあるイベントを取得します。
名前空間: 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
パラメーター
- eventLocation
型: Microsoft.SqlServer.XEvent.Linq.EventLocator
以前にイベント プロバイダーから取得したイベントの場所のオブジェクト。 イベントの場所は、PublishedEvent オブジェクトの Location プロパティから取得されます。
戻り値
型: T
指定した場所からパブリッシュされたイベント。
説明
要求された場所が使用できなくなった場合、このメソッドは例外をスローする可能性があります。