Share via


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 供关联的数据绑定控件设计器使用。

预计设计器不会在设计时执行实际数据访问。 相反,设计器会创建与数据源架构匹配的示例数据。

适用于

另请参阅