CollectorConfigStore.ISfcHasConnection.GetConnection Method (SfcObjectQueryMode)
Gets the server connection to the backing storage that supports the specified query processing mode.
Namespace: Microsoft.SqlServer.Management.Collector
Assembly: Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)
Syntax
'Declaration
Private Function GetConnection ( _
activeQueriesMode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Usage
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 supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- activeQueriesMode
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode
An SfcObjectQueryMode value that specifies the query processing mode.
Return Value
Type: Microsoft.SqlServer.Management.Common.ISfcConnection
Returns ISfcConnection. An ISfcConnection object that contains the server connection.