IDtsConnectionManagerUI.New 方法

定义

针对新创建的连接管理器的任务提供通知。 在新的连接管理器添加到包之后调用此方法。

public:
 bool New(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::Connections ^ connections, Microsoft::SqlServer::Dts::Runtime::Design::ConnectionManagerUIArgs ^ connectionUIArg);
public bool New (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, Microsoft.SqlServer.Dts.Runtime.Design.ConnectionManagerUIArgs connectionUIArg);
abstract member New : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.Design.ConnectionManagerUIArgs -> bool
Public Function New (parentWindow As IWin32Window, connections As Connections, connectionUIArg As ConnectionManagerUIArgs) As Boolean

参数

parentWindow
IWin32Window

承载该任务的设计器的 IWin32Window 接口。

connections
Connections

要向其添加新连接的连接集合,或者要显示在用户界面的下拉列表或其他控件中的连接。

返回

Boolean

如果创建了新连接,则为 true。

注解

此方法用于创建所需的特定类型的连接。

适用于