Freigeben über


XEStore.ISfcHasConnection.GetConnection-Methode

Gets the current connection for a query.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Private Function GetConnection As ISfcConnection 
    Implements ISfcHasConnection.GetConnection
'Usage
Dim instance As XEStore 
Dim returnValue As ISfcConnection 

returnValue = CType(instance, ISfcHasConnection).GetConnection()
ISfcConnection ISfcHasConnection.GetConnection()
private:
virtual ISfcConnection^ GetConnection() sealed = ISfcHasConnection::GetConnection
private abstract GetConnection : unit -> ISfcConnection  
private override GetConnection : unit -> ISfcConnection
JScript unterstützt die Verwendung expliziter Schnittstellenimplementierungen, aber nicht die Deklaration neuer Schnittstellenimplementierungen.

Rückgabewert

Typ: Microsoft.SqlServer.Management.Common.ISfcConnection
Returns a connection that supports a single serial query, therefore, the query must end before another query can begin.

Implementiert

ISfcHasConnection.GetConnection()

Siehe auch

Verweis

XEStore Klasse

GetConnection-Überladung

Microsoft.SqlServer.Management.XEvent-Namespace