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

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

适用于

另请参阅