This documentation is archived and is not being maintained.
DesignTimeData.GetDesignTimeDataSource Method
.NET Framework 1.1
Adds sample rows to the specified data table and returns the updated table.
[Visual Basic] Public Shared Function GetDesignTimeDataSource( _ ByVal dataTable As DataTable, _ ByVal minimumRows As Integer _ ) As IEnumerable [C#] public static IEnumerable GetDesignTimeDataSource( DataTable dataTable, int minimumRows ); [C++] public: static IEnumerable* GetDesignTimeDataSource( DataTable* dataTable, int minimumRows ); [JScript] public static function GetDesignTimeDataSource( dataTable : DataTable, minimumRows : int ) : IEnumerable;
Parameters
- dataTable
- The DataTable that defines the shape of the data source. Sample rows are added to this table.
- minimumRows
- The minimum number of rows of sample data that the data source will contain.
Return Value
A live data source for use at design time.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- 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
See Also
DesignTimeData Class | DesignTimeData Members | System.Web.UI.Design Namespace
Show: