Метод CollectorConfigStore.ISfcHasConnection.GetConnection (SfcObjectQueryMode)

Gets the server connection to the backing storage that supports the specified query processing mode.

Пространство имен:  Microsoft.SqlServer.Management.Collector
Сборка:  Microsoft.SqlServer.Management.Collector (в Microsoft.SqlServer.Management.Collector.dll)

Синтаксис

'Декларация
Private Function GetConnection ( _
    activeQueriesMode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Применение
Dim instance As CollectorConfigStore 
Dim activeQueriesMode As SfcObjectQueryMode 
Dim returnValue As ISfcConnection 

returnValue = CType(instance, ISfcHasConnection).GetConnection(activeQueriesMode)
ISfcConnection ISfcHasConnection.GetConnection(
    SfcObjectQueryMode activeQueriesMode
)
private:
virtual ISfcConnection^ GetConnection(
    SfcObjectQueryMode activeQueriesMode
) sealed = ISfcHasConnection::GetConnection
private abstract GetConnection : 
        activeQueriesMode:SfcObjectQueryMode -> ISfcConnection  
private override GetConnection : 
        activeQueriesMode:SfcObjectQueryMode -> ISfcConnection
JScript поддерживает использование явных реализаций интерфейса, но не объявление новых.

Параметры

Возвращаемое значение

Тип: Microsoft.SqlServer.Management.Common.ISfcConnection
Returns ISfcConnection. An ISfcConnection object that contains the server connection.

Реализует

ISfcHasConnection.GetConnection(SfcObjectQueryMode)

См. также

Справочник

CollectorConfigStore Класс

Перегрузка GetConnection

Пространство имен Microsoft.SqlServer.Management.Collector