語言

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。

適用於

另請參閱