共用方式為


ISfcHasConnection.SetConnection 方法

Sets a connection. This class cannot be inherited.

命名空間:  Microsoft.SqlServer.Management.RegisteredServers
組件:  Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

語法

'宣告
Private Sub SetConnection ( _
    connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
'用途
Dim instance As RegisteredServersStore
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 
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

實作

ISfcHasConnection. . :: . .SetConnection(ISfcConnection)

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。