DataRowCollection 成员

表示 DataTable 的行的集合。

下表列出了由 DataRowCollection 类型公开的成员。

公共属性

(请参见 受保护的属性 )

  名称 说明
Public property Supported by the .NET Compact Framework Count 已重写。获取该集合中 DataRow 对象的总数。
Public property Supported by the .NET Compact Framework IsReadOnly  获取一个值,该值指示 InternalDataCollectionBase 是否为只读。(从 InternalDataCollectionBase 继承。)
Public property Supported by the .NET Compact Framework IsSynchronized  获取一个值,该值指示 InternalDataCollectionBase 是否是同步的。(从 InternalDataCollectionBase 继承。)
Public property Supported by the .NET Compact Framework Item 获取指定索引处的行。
Public property Supported by the .NET Compact Framework SyncRoot  获取可用于同步集合的对象。(从 InternalDataCollectionBase 继承。)

页首

受保护的属性

  名称 说明
Protected property Supported by the .NET Compact Framework List 已重写。 

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Add 已重载。 向 DataRowCollection 添加 DataRow
Public method Supported by the .NET Compact Framework Clear 清除所有行的集合。
Public method Supported by the .NET Compact Framework Contains 已重载。 获取一个值,该值表明集合中任何行的主键列是否包含指定值。
Public method Supported by the .NET Compact Framework CopyTo 已重载。 已重写。 将该集合中的所有 DataRow 对象复制到起始位置为给定目标数组索引的给定数组中。
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Find 已重载。 获取指定的 DataRow
Public method Supported by the .NET Compact Framework GetEnumerator 已重写。 获取该集合的 IEnumerator
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework IndexOf 获取指定 DataRow 对象的索引。
Public method Supported by the .NET Compact Framework InsertAt 将新行插入到集合中的指定位置。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Remove 从集合中移除指定的 DataRow
Public method Supported by the .NET Compact Framework RemoveAt 从集合中移除指定索引处的行。
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

DataRowCollection 类
System.Data 命名空间
DataRow 类
DataTable
NewRow