Partilhar via


Método 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.

Namespace:  Microsoft.SqlServer.Management.Collector
Assembly:  Microsoft.SqlServer.Management.Collector (em Microsoft.SqlServer.Management.Collector.dll)

Sintaxe

'Declaração
Private Function GetConnection As ISfcConnection 
    Implements ISfcHasConnection.GetConnection
'Uso
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 dá suporte ao uso de implementações de interfaces explícitas, mas não a declarações de implementações novas.

Valor de retorno

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

Implementa

ISfcHasConnection.GetConnection()

Consulte também

Referência

CollectorConfigStore Classe

Sobrecarregado GetConnection

Namespace Microsoft.SqlServer.Management.Collector