SqlConnectionInfoWithConnection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SqlConnectionInfoWithConnection()
public SqlConnectionInfoWithConnection();
Public Sub New ()
適用於
SqlConnectionInfoWithConnection(SqlConnection)
public SqlConnectionInfoWithConnection(Microsoft.Data.SqlClient.SqlConnection sqlConnection);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection : Microsoft.Data.SqlClient.SqlConnection -> Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection
Public Sub New (sqlConnection As SqlConnection)
參數
- sqlConnection
- SqlConnection
適用於
SqlConnectionInfoWithConnection(SqlConnection)
public SqlConnectionInfoWithConnection(System.Data.SqlClient.SqlConnection sqlConnection);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection : System.Data.SqlClient.SqlConnection -> Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection
Public Sub New (sqlConnection As SqlConnection)
參數
- sqlConnection
- SqlConnection
適用於
SqlConnectionInfoWithConnection(String)
public SqlConnectionInfoWithConnection(string serverName);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection : string -> Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection
Public Sub New (serverName As String)
參數
- serverName
- String
適用於
SqlConnectionInfoWithConnection(String, String, String)
public SqlConnectionInfoWithConnection(string serverName, string userName, string password);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection : string * string * string -> Microsoft.SqlServer.Management.Common.SqlConnectionInfoWithConnection
Public Sub New (serverName As String, userName As String, password As String)
參數
- serverName
- String
- userName
- String
- password
- String