ServerConnection 建構 (SqlConnection)
Initializes a new instance of the ServerConnection class with the specified connection parameters.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Sub New ( _
sqlConnection As SqlConnection _
)
'用途
Dim sqlConnection As SqlConnection
Dim instance As New ServerConnection(sqlConnection)
public ServerConnection(
SqlConnection sqlConnection
)
public:
ServerConnection(
SqlConnection^ sqlConnection
)
new :
sqlConnection:SqlConnection -> ServerConnection
public function ServerConnection(
sqlConnection : SqlConnection
)
參數
- sqlConnection
型別:System.Data.SqlClient. . :: . .SqlConnection
A SqlConnection system object that specifies connection parameters associated with the referenced connection.