ServerConnection constructeur (SqlConnection)
Initializes a new instance of the ServerConnection class with the specified connection parameters.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
sqlConnection As SqlConnection _
)
'Utilisation
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
)
Paramètres
- sqlConnection
Type : System.Data.SqlClient. . :: . .SqlConnection
A SqlConnection system object that specifies connection parameters associated with the referenced connection.