共用方式為


ServerConnection 建構函式 (SqlConnectionInfo)

Initializes a new instance of the ServerConnection class with the specified connection information.

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

語法

'宣告
Public Sub New ( _
    sci As SqlConnectionInfo _
)
'用途
Dim sci As SqlConnectionInfo 

Dim instance As New ServerConnection(sci)
public ServerConnection(
    SqlConnectionInfo sci
)
public:
ServerConnection(
    SqlConnectionInfo^ sci
)
new : 
        sci:SqlConnectionInfo -> ServerConnection
public function ServerConnection(
    sci : SqlConnectionInfo
)

參數

請參閱

參考

ServerConnection 類別

ServerConnection 多載

Microsoft.SqlServer.Management.Common 命名空間