แก้ไข

แชร์ผ่าน


BaseDataListDesigner.GetDesignTimeDataSource Method

Definition

Generates an object that can be used as a data source at design time.

Overloads

GetDesignTimeDataSource(Int32, Boolean)

Generates an object that can be used as a data source at design time.

GetDesignTimeDataSource(IEnumerable, Int32, Boolean)

Generates an object that can be used as a data source at design time.

GetDesignTimeDataSource(Int32, Boolean)

Generates an object that can be used as a data source at design time.

protected:
 System::Collections::IEnumerable ^ GetDesignTimeDataSource(int minimumRows, [Runtime::InteropServices::Out] bool % dummyDataSource);
protected System.Collections.IEnumerable GetDesignTimeDataSource (int minimumRows, out bool dummyDataSource);
member this.GetDesignTimeDataSource : int * bool -> System.Collections.IEnumerable
Protected Function GetDesignTimeDataSource (minimumRows As Integer, ByRef dummyDataSource As Boolean) As IEnumerable

Parameters

minimumRows
Int32

The minimum number of rows of sample data that the data source should contain.

dummyDataSource
Boolean

true if the returned data source contains dummy data; false if the returned data source contains data from an actual data source.

Returns

An object implementing an IEnumerable interface that serves as a data source for use at design time.

Remarks

The BaseDataListDesigner.GetDesignTimeDataSource method attempts to construct a DataTable object from the data source that is defined by the DataSource and DataMember properties. If this is not possible, it creates a DataTable from dummy data.

See also

Applies to

GetDesignTimeDataSource(IEnumerable, Int32, Boolean)

Generates an object that can be used as a data source at design time.

protected:
 System::Collections::IEnumerable ^ GetDesignTimeDataSource(System::Collections::IEnumerable ^ selectedDataSource, int minimumRows, [Runtime::InteropServices::Out] bool % dummyDataSource);
protected System.Collections.IEnumerable GetDesignTimeDataSource (System.Collections.IEnumerable selectedDataSource, int minimumRows, out bool dummyDataSource);
member this.GetDesignTimeDataSource : System.Collections.IEnumerable * int * bool -> System.Collections.IEnumerable
Protected Function GetDesignTimeDataSource (selectedDataSource As IEnumerable, minimumRows As Integer, ByRef dummyDataSource As Boolean) As IEnumerable

Parameters

selectedDataSource
IEnumerable

An object implementing an IEnumerable that is used as a template for the data format.

minimumRows
Int32

The minimum number of rows of sample data that the data source data should contain.

dummyDataSource
Boolean

true if the returned data source contains dummy data; false if the returned data source contains data from an actual data source.

Returns

An object implementing an IEnumerable interface that serves as a data source for use at design time.

Remarks

The BaseDataListDesigner.GetDesignTimeDataSource method attempts to construct a DataTable object from the data source that is specified by the selectedDataSource parameter. If this is not possible, it creates a DataTable from dummy data.

See also

Applies to