SqlConnectionInfo constructeur (ServerConnection, ConnectionType)
Initializes a new instance of the SqlConnectionInfo class.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
serverConnection As ServerConnection, _
connectionType As ConnectionType _
)
'Utilisation
Dim serverConnection As ServerConnection
Dim connectionType As ConnectionType
Dim instance As New SqlConnectionInfo(serverConnection, _
connectionType)
public SqlConnectionInfo(
ServerConnection serverConnection,
ConnectionType connectionType
)
public:
SqlConnectionInfo(
ServerConnection^ serverConnection,
ConnectionType connectionType
)
new :
serverConnection:ServerConnection *
connectionType:ConnectionType -> SqlConnectionInfo
public function SqlConnectionInfo(
serverConnection : ServerConnection,
connectionType : ConnectionType
)
Paramètres
- serverConnection
Type : Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
A ServerConnection object value that specifies an existing connection on which to base the new SqlConnectionInfo object.
- connectionType
Type : Microsoft.SqlServer.Management.Common. . :: . .ConnectionType
A ConnectionType object value that specifies the type of connection.