SqlConnectionInfo 建構函式 (ServerConnection, ConnectionType)
初始化 SqlConnectionInfo 類別的新執行個體。
命名空間: 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
ServerConnection 物件值,指定要做為新 SqlConnectionInfo 物件基礎的現有連接。
- connectionType
型別:Microsoft.SqlServer.Management.Common.ConnectionType
指定連接類型的 ConnectionType 物件值。