Редагувати

Поділитися через


BaseDataBoundControlDesigner.ShowCreateDataSourceDialog Method

Definition

In a design host, such as Visual Studio 2005, displays a dialog box to assist the user in creating a data source.

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

Parameters

controlDesigner
ControlDesigner

A reference to this designer.

dataSourceType
Type

The type of data source.

configure
Boolean

true to enable editing of the configuration, or false to disable configuration editing.

dataSourceID
String

The ID of a DataSourceControl control on the page.

Returns

A DialogResult object.

Applies to

See also