Метод IntegrationServices.ISfcHasConnection.GetConnection (SfcObjectQueryMode)
Retrieves the current connection to query on. Returns a connection supporting either a single serial query or multiple simultaneously open queries as requested.
Пространство имен: Microsoft.SqlServer.Management.IntegrationServices
Сборка: Microsoft.SqlServer.Management.IntegrationServices (в Microsoft.SqlServer.Management.IntegrationServices.dll)
Синтаксис
'Декларация
Private Function GetConnection ( _
mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Применение
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 поддерживает использование явных реализаций интерфейса, но не объявление новых.
Параметры
- mode
Тип: Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode
The mode of the connection.
Возвращаемое значение
Тип: Microsoft.SqlServer.Management.Common.ISfcConnection
The connection to use, or nullпустая ссылка (Nothing в Visual Basic) to use cache mode. Cache mode avoids connection and open data reader issues.
Реализует
ISfcHasConnection.GetConnection(SfcObjectQueryMode)
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.IntegrationServices