語言

SqlDesignerDataSourceView.GetDesignTimeData(Int32, Boolean) 方法

定義

利用提供的列數產生與相關資料源碼控制結構相符的設計時資料,並回傳一個值,表示資料是樣本資料還是實資料。

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

參數

minimumRows
Int32

回來的最低行數。

isSampleData
Boolean

true 用以表示回傳的資料為樣本資料; false 用以表示回傳的資料為即時資料。

傳回

一個 DataSourceView 包含設計時顯示資料的物件。

適用於

另請參閱