XEStore.ISfcHasConnection.GetConnection メソッド (SfcObjectQueryMode)

クエリの現在の接続を取得します。

名前空間:  Microsoft.SqlServer.Management.XEvent
アセンブリ:  Microsoft.SqlServer.Management.XEvent (Microsoft.SqlServer.Management.XEvent.dll)

構文

'宣言
Private Function GetConnection ( _
    mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'使用
Dim instance As XEStore 
Dim mode As SfcObjectQueryMode 
Dim returnValue As ISfcConnection 

returnValue = CType(instance, ISfcHasConnection).GetConnection(mode)
ISfcConnection ISfcHasConnection.GetConnection(
    SfcObjectQueryMode mode
)
private:
virtual ISfcConnection^ GetConnection(
    SfcObjectQueryMode mode
) sealed = ISfcHasConnection::GetConnection
private abstract GetConnection : 
        mode:SfcObjectQueryMode -> ISfcConnection  
private override GetConnection : 
        mode:SfcObjectQueryMode -> ISfcConnection
JScript は明示的なインターフェイス実装の使用をサポートしていますが、新規の宣言はサポートしていません。

パラメーター

戻り値

型: Microsoft.SqlServer.Management.Common.ISfcConnection
接続または null を返します。null の場合は、キャッシュ モード接続が指定されます。

実装

ISfcHasConnection.GetConnection(SfcObjectQueryMode)

説明

このメソッドは、1 つの直列クエリまたは複数の同時に開くクエリをサポートする接続を返します。 キャッシュ モードでは、接続および開いているデータ リーダーの問題を回避できます。

関連項目

参照

XEStore クラス

GetConnection オーバーロード

Microsoft.SqlServer.Management.XEvent 名前空間