Udostępnij za pośrednictwem


Metoda CollectorConfigStore.ISfcHasConnection.SetConnection

Ustawia aktywne połączenie dla katalogu głównego domena.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie.Obsługuje on infrastrukturę programu SQL Server.

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

Składnia

'Deklaracja
Private Sub SetConnection ( _
    connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
'Użycie
Dim instance As CollectorConfigStore
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

Implementacje

ISfcHasConnection.SetConnection(ISfcConnection)