Share via


SqlConnectionInfo Constructor (ServerConnection, ConnectionType)

Initializes a new instance of the SqlConnectionInfo class.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Sub New ( _
    serverConnection As ServerConnection, _
    connectionType As ConnectionType _
)
'Usage
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
)

Parameters