Construtor ServerConnection (SqlConnection)
Initializes a new instance of the ServerConnection class with the specified connection parameters.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxe
'Declaração
Public Sub New ( _
sqlConnection As SqlConnection _
)
'Uso
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
)
Parâmetros
- sqlConnection
Tipo: System.Data.SqlClient. . :: . .SqlConnection
A SqlConnection system object that specifies connection parameters associated with the referenced connection.