DataItemCollection 类

定义

表示的 DataItem 对象的集合。

[System.Runtime.InteropServices.Guid("289E8AED-7BE3-4220-B096-5FF2E81986A7")]
public sealed class DataItemCollection : System.Collections.IList
[<System.Runtime.InteropServices.Guid("289E8AED-7BE3-4220-B096-5FF2E81986A7")>]
type DataItemCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class DataItemCollection
Implements IList
继承
DataItemCollection
属性
实现

属性

Count

获取集合中包含的元素数。

Item[Int32]

获取或设置指定索引处的元素。

方法

Add(DataItem)

将指定的 DataItem 添加到此集合。

Add(String, String)

创建,添加到集合,并返回具有 ColumnBinding 源的新 DataItem。

Add(String, String, DataType)

创建,添加到集合,并返回具有 ColumnBinding 源的新 DataItem。

Add(String, String, DataType, Int32)

创建,添加到集合,并返回具有 ColumnBinding 源的新 DataItem。

Add(String, String, OleDbType)

创建,添加到集合,并返回具有 ColumnBinding 源的新 DataItem。

Add(String, String, OleDbType, Int32)

创建,添加到集合,并返回具有 ColumnBinding 源的新 DataItem。

Clear()

从集合中移除所有项。

Contains(DataItem)

确定集合中是否存在指定的 DataItem。

CopyTo(Array, Int32)

将集合的元素复制到数组,从特定数组索引处开始复制。

IndexOf(DataItem)

在集合中搜索指定的 DataItem,并返回其从零开始的索引。

Insert(Int32, DataItem)

将 DataItem 插入此集合中的指定索引处。

Remove(DataItem)

从此集合中删除指定的 DataItem。

RemoveAt(Int32)

删除指定索引处的 DataItem。

显式接口实现

ICollection.IsSynchronized

表示的 DataItem 对象的集合。

ICollection.SyncRoot

表示的 DataItem 对象的集合。

IEnumerable.GetEnumerator()

表示的 DataItem 对象的集合。

IList.Add(Object)

表示的 DataItem 对象的集合。

IList.Contains(Object)

表示的 DataItem 对象的集合。

IList.IndexOf(Object)

表示的 DataItem 对象的集合。

IList.Insert(Int32, Object)

表示的 DataItem 对象的集合。

IList.IsFixedSize

表示的 DataItem 对象的集合。

IList.IsReadOnly

表示的 DataItem 对象的集合。

IList.Item[Int32]

表示的 DataItem 对象的集合。

IList.Remove(Object)

表示的 DataItem 对象的集合。

适用于