ServerConnection 建構函式 (SqlConnectionInfo)
使用指定的連接資訊,初始化 ServerConnection 類別的新執行個體。
命名空間: 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
)
參數
- sci
型別:Microsoft.SqlServer.Management.Common.SqlConnectionInfo
SqlConnectionInfo 物件值,指定建立連接時所需要的連接資訊。