Udostępnij za pośrednictwem


Metoda CollectorConfigStore.ISfcHasConnection.GetConnection

Uzyskuje połączenie z serwerem do przechowywania kopii.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 Function GetConnection As ISfcConnection
    Implements ISfcHasConnection.GetConnection
'Użycie
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 
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 wartość ISfcConnection.Obiekt ISfcConnection zawiera połączenie z serwerem.

Implementacje

ISfcHasConnection.GetConnection()