Share via


IList 成员

表示可按照索引单独访问的对象的非泛型集合。

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

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework IsFixedSize 获取一个值,该值指示 IList 是否具有固定大小。
Public property Supported by the .NET Compact Framework IsReadOnly 获取一个值,该值指示 IList 是否为只读。
Public property Supported by the .NET Compact Framework Item 获取或设置指定索引处的元素。

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework Add 将某项添加到 IList 中。
Public method Supported by the .NET Compact Framework Clear IList 中移除所有项。
Public method Supported by the .NET Compact Framework Contains 确定 IList 是否包含特定值。
Public method Supported by the .NET Compact Framework IndexOf 确定 IList 中特定项的索引。
Public method Supported by the .NET Compact Framework Insert 将一个项插入指定索引处的 IList
Public method Supported by the .NET Compact Framework Remove IList 中移除特定对象的第一个匹配项。
Public method Supported by the .NET Compact Framework RemoveAt 移除指定索引处的 IList 项。

页首

请参见

参考

IList 接口
System.Collections 命名空间
ArrayList 类
ICollection 接口
System.Collections.Generic.IList