BaseDataBoundControlDesigner.ShowCreateDataSourceDialog 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在設計主機中,如 Visual Studio 2005,會顯示一個對話框,協助使用者建立資料來源。
public:
static System::Windows::Forms::DialogResult ShowCreateDataSourceDialog(System::Web::UI::Design::ControlDesigner ^ controlDesigner, Type ^ dataSourceType, bool configure, [Runtime::InteropServices::Out] System::String ^ % dataSourceID);
public static System.Windows.Forms.DialogResult ShowCreateDataSourceDialog(System.Web.UI.Design.ControlDesigner controlDesigner, Type dataSourceType, bool configure, out string dataSourceID);
static member ShowCreateDataSourceDialog : System.Web.UI.Design.ControlDesigner * Type * bool * string -> System.Windows.Forms.DialogResult
Public Shared Function ShowCreateDataSourceDialog (controlDesigner As ControlDesigner, dataSourceType As Type, configure As Boolean, ByRef dataSourceID As String) As DialogResult
參數
- controlDesigner
- ControlDesigner
這是對這位設計師的致敬。
- dataSourceType
- Type
資料來源的類型。
- configure
- Boolean
true 以啟用設定編輯,或 false 停用設定編輯功能。
- dataSourceID
- String
頁面上控制項的 ID DataSourceControl 。
傳回
DialogResult 物件。