語言

ObjectDesignerDataSourceView.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

一個表示回傳資料是樣本資料還是實資料的值。

傳回

由關聯 ObjectDataSource 資料代表的樣本,或 null 若設計者無法產生任何樣本資料,則為該資料的樣本。

備註

此 GetDesignTimeData 方法提供一個設計時版本 ObjectDataSource 的視圖,供相關資料綁定控制設計者使用。

設計時設計時不預期會實際進行資料存取。 設計者會建立與資料來源結構相符的範例資料。

適用於

另請參閱