BaseDataBoundControlDesigner.ShowCreateDataSourceDialog Metod

Definition

I en designvärd, till exempel Visual Studio 2005, visas en dialogruta som hjälper användaren att skapa en datakälla.

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

Parametrar

controlDesigner
ControlDesigner

En referens till den här designern.

dataSourceType
Type

Typen av datakälla.

configure
Boolean

true för att aktivera redigering av konfigurationen eller false för att inaktivera konfigurationsredigering.

dataSourceID
String

ID för en DataSourceControl kontroll på sidan.

Returer

Ett DialogResult objekt.

Gäller för

Se även