DesignTimeData.CreateDummyDataTable 方法

定义

创建一个 DataTable 对象,包含三列,列的名称指示这些列包含示例数据。Creates a DataTable object that contains three columns with names that indicate that the columns contain sample data.

public:
 static System::Data::DataTable ^ CreateDummyDataTable();
public static System.Data.DataTable CreateDummyDataTable ();
static member CreateDummyDataTable : unit -> System.Data.DataTable
Public Shared Function CreateDummyDataTable () As DataTable

返回

DataTable

一个新的 DataTable,包含三列。A new DataTable with three columns. 这些列可以包含字符串类型的数据。These columns can contain data of type string.

注解

列数据类型均为字符串。The column data types are all string. 调用设计器组件可以调用 GetDesignTimeDataSource 方法将数据行添加到生成的表中。The calling designer component can call the GetDesignTimeDataSource method to add rows of data to the resulting table.

适用于