您当前的位置: 首页 >  ar

C# DataRow.ItemArray 属性

衣舞晨风 发布时间:2014-03-04 14:15:10 ,浏览量:3

DataRow.ItemArray 属性 通过一个数组来获取或设置此行的所有值。 命名空间:System.Data

程序集:System.Data(在 system.data.dll 中)

代码示例:

private void CreateRowsWithItemArray()
{
    // Make a DataTable using the function below.
    DataTable dt = MakeTableWithAutoIncrement();
    DataRow relation;
    // Declare the array variable.
    object [] rowArray = new object[2];
    // Create 10 new rows and add to DataRowCollection.
    for(int i = 0; i             
关注
打赏
1688896170
查看更多评论
0.0487s