BaseDataListDesigner.GetDesignTimeDataSource Method (IEnumerable, Int32, Boolean)

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

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in system.design.dll)

protected:
IEnumerable^ GetDesignTimeDataSource (
	IEnumerable^ selectedDataSource, 
	int minimumRows, 
	[OutAttribute] bool% dummyDataSource
)
protected IEnumerable GetDesignTimeDataSource (
	IEnumerable selectedDataSource, 
	int minimumRows, 
	/** @attribute OutAttribute() */ /** @ref */ boolean dummyDataSource
)
JScript does not support passing value-type arguments by reference.

Parameters

selectedDataSource

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

minimumRows

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

dummyDataSource

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

Return Value

An 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 specified by the selectedDataSource parameter. 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 .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: