BaseDataListDesigner.GetDesignTimeDataSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應