共用方式為


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 物件,包含要在設計階段顯示的資料。

適用於

另請參閱