IDtsConnectionManagerUI.New 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为新创建的连接管理器的任务提供通知。 该方法在向包中添加新的连接管理器后调用。
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
连接集合用于添加新连接,或在用户界面下拉菜单或其他控件中显示连接。
- connectionUIArg
- ConnectionManagerUIArgs
一个实现 的 ConnectionManagerUIArgs类,例如 FileConnectionManagerUIArgsMultiFileConnectionManagerUIArgs或 。
返回
如果新连接被创建,则成立。
注解
这种方法用于创建你所需的特定类型的连接。