Partager via


Méthode CollectorConfigStore.ISfcHasConnection.GetConnection

Gets the server connection to the backing storage. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Espace de noms :  Microsoft.SqlServer.Management.Collector
Assembly :  Microsoft.SqlServer.Management.Collector (en Microsoft.SqlServer.Management.Collector.dll)

Syntaxe

'Déclaration
Private Function GetConnection As ISfcConnection 
    Implements ISfcHasConnection.GetConnection
'Utilisation
Dim instance As CollectorConfigStore 
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 prend en charge l'utilisation d'implémentations d'interface explicites, mais pas la déclaration de nouvelles implémentations d'interface.

Valeur de retour

Type : Microsoft.SqlServer.Management.Common.ISfcConnection
Returns ISfcConnection. An ISfcConnection object that contains the server connection.

Implémente

ISfcHasConnection.GetConnection()

Voir aussi

Référence

CollectorConfigStore Classe

Surcharge GetConnection

Espace de noms Microsoft.SqlServer.Management.Collector