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 版本支持此命名空间、类或成员。