Udostępnij za pośrednictwem


Metoda DacDomain.ISfcHasConnection.GetConnection

Pobiera połączenia wystąpienie aparatu bazy danych, służąc jako magazynu.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Dac
Zestaw:  Microsoft.SqlServer.Management.Dac (w Microsoft.SqlServer.Management.Dac.dll)

Składnia

'Deklaracja
Private Function GetConnection As ISfcConnection
    Implements ISfcHasConnection.GetConnection
'Użycie
Dim instance As DacDomain
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 
Język JScript obsługuje używanie jawnych implementacji interfejsów, ale nie obsługuje deklarowania nowych.

Wartość zwracana

Typ: Microsoft.SqlServer.Management.Common.ISfcConnection
Zwraca ISfcConnection obiekt, który zawiera połączenia.

Implementacje

ISfcHasConnection.GetConnection()