Metoda DacDomain.ISfcHasConnection.SetConnection
Ustawia aktywne połączenie dla katalogu głównego domena.
Przestrzeń nazw: Microsoft.SqlServer.Management.Dac
Zestaw: Microsoft.SqlServer.Management.Dac (w Microsoft.SqlServer.Management.Dac.dll)
Składnia
'Deklaracja
Private Sub SetConnection ( _
connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
'Użycie
Dim instance As DacDomain
Dim connection As ISfcConnection
CType(instance, ISfcHasConnection).SetConnection(connection)
void ISfcHasConnection.SetConnection(
ISfcConnection connection
)
private:
virtual void SetConnection(
ISfcConnection^ connection
) sealed = ISfcHasConnection::SetConnection
private abstract SetConnection :
connection:ISfcConnection -> unit
private override SetConnection :
connection:ISfcConnection -> unit
Język JScript obsługuje używanie jawnych implementacji interfejsów, ale nie obsługuje deklarowania nowych.
Parametry
- connection
Typ: Microsoft.SqlServer.Management.Common.ISfcConnection
ISfcConnection Obiekt, który określa połączenie do użytku.