語言

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

頁面上控制項的 ID DataSourceControl 。

傳回

DialogResult 物件。

適用於

另請參閱