This documentation is archived and is not being maintained.
BaseDataListDesigner::GetDesignTimeDataSource Method (Int32, Boolean%)
Visual Studio 2010
Generates an object that can be used as a data source at design time.
Assembly: System.Design (in System.Design.dll)
protected: IEnumerable^ GetDesignTimeDataSource( int minimumRows, [OutAttribute] bool% dummyDataSource )
Parameters
- minimumRows
- Type: System::Int32
The minimum number of rows of sample data that the data source should contain.
- dummyDataSource
- Type: System::Boolean%
true if the returned data source contains dummy data; false if the returned data source contains data from an actual data source.
Return Value
Type: System.Collections::IEnumerableAn object implementing an IEnumerable interface that serves as a data source for use at design time.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: