Share via


DesignerDataSourceView.GetDesignTimeData(Int32, Boolean) 方法

定義

產生設計階段資料,該資料符合使用所指定資料列數之關聯資料來源控制項的結構描述,且指出會傳回範例還是實際資料。

public:
 virtual System::Collections::IEnumerable ^ GetDesignTimeData(int minimumRows, [Runtime::InteropServices::Out] bool % isSampleData);
public virtual System.Collections.IEnumerable GetDesignTimeData (int minimumRows, out bool isSampleData);
abstract member GetDesignTimeData : int * bool -> System.Collections.IEnumerable
override this.GetDesignTimeData : int * bool -> System.Collections.IEnumerable
Public Overridable Function GetDesignTimeData (minimumRows As Integer, ByRef isSampleData As Boolean) As IEnumerable

參數

minimumRows
Int32

要傳回的資料列數目下限。

isSampleData
Boolean

true 表示傳回的資料是範例資料,false 則表示傳回的資料是實際資料。

傳回

DataSourceView 物件,包含要在設計階段顯示的資料。

範例

如需搭配檢視、架構和資料來源設計工具使用 GetDesignTimeData 方法的完整範例,請參閱 DataSourceDesigner

適用於

另請參閱