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 对象。

适用于

另请参阅