IntegrationServices.ISfcHasConnection.GetConnection Method (SfcObjectQueryMode)

Retrieves the current connection to query on. Returns a connection supporting either a single serial query or multiple simultaneously open queries as requested.

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

Syntax

'Declaration
Private Function GetConnection ( _
    mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Usage
Dim instance As IntegrationServices 
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 supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Common.ISfcConnection
The connection to use, or nulla null reference (Nothing in Visual Basic) to use cache mode. Cache mode avoids connection and open data reader issues.

Implements

ISfcHasConnection.GetConnection(SfcObjectQueryMode)

See Also

Reference

IntegrationServices Class

GetConnection Overload

Microsoft.SqlServer.Management.IntegrationServices Namespace