Share via


XEStore.ISfcHasConnection.GetConnection Method

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 supports the use of explicit interface implementations, but not the declarations of new ones.

Return Value

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

Implements

ISfcHasConnection.GetConnection()

See Also

Reference

XEStore Class

GetConnection Overload

Microsoft.SqlServer.Management.XEvent Namespace