共用方式為


BaseDataBoundControlDesigner.ShowCreateDataSourceDialog 方法

定義

在設計主控制項(例如 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

頁面上 DataSourceControl 控制項的 ID。

傳回

DialogResult

DialogResult 物件。

適用於

另請參閱