Partilhar via


Método ISfcHasConnection.GetConnection (SfcObjectQueryMode)

Obtém a conexão de servidor com o armazenamento de backup que oferece suporte ao modo de processamento de consulta especificado.

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

Sintaxe

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

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Common. . :: . .ISfcConnection
Retorna ISfcConnection. Um objeto ISfcConnection que contém os detalhes da conexão de servidor.

Implementa

ISfcHasConnection. . :: . .GetConnection(SfcObjectQueryMode)