Конструктор SqlConnectionInfo (ServerConnection, ConnectionType)
Initializes a new instance of the SqlConnectionInfo class.
Пространство имен: Microsoft.SqlServer.Management.Common
Сборка: Microsoft.SqlServer.ConnectionInfo (в Microsoft.SqlServer.ConnectionInfo.dll)
Синтаксис
'Декларация
Public Sub New ( _
serverConnection As ServerConnection, _
connectionType As ConnectionType _
)
'Применение
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
)
Параметры
- serverConnection
Тип Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
A ServerConnection object value that specifies an existing connection on which to base the new SqlConnectionInfo object.
- connectionType
Тип Microsoft.SqlServer.Management.Common. . :: . .ConnectionType
A ConnectionType object value that specifies the type of connection.