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 的類別,例如 FileConnectionManagerUIArgs 或 MultiFileConnectionManagerUIArgs。
傳回
如果已建立新的連接,則為 true。
備註
這個方法是用來建立您所需之特定類型的連接。