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

指出傳回的資料為範例資料或真實資料的值。

傳回

IEnumerable

由相關聯 ObjectDataSource 表示的資料範例,如果設計工具無法產生任何資料範例,則為 null

備註

GetDesignTimeData方法會提供設計階段版本的 ObjectDataSource 視圖,供相關聯的資料繫結控制項設計工具使用。

設計工具在設計階段時不會執行實際的資料存取。 相反地,設計工具會建立符合資料來源架構的範例資料。

適用於

另請參閱