System::Collections::Generic::IList 类

IList class

索引容器元素的接口。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

template<typename T>class IList : public System::Collections::Generic::ICollection<T>
Parameter描述
T元素类型。

方法

方法描述
get_IsFixedSize()检查集合是否具有固定大小。
virtual idx_get(int) const获取指定索引处的元素。
virtual idx_set(int, T)设置指定索引处的元素。
virtual IndexOf(const T&) const获取项在容器中首次出现的索引。
virtual Insert(int, const T&)在指定位置插入元素,后面的元素向后移动。
virtual RemoveAt(int)移除指定索引处的元素。

Typedefs

类型定义描述
BaseTypeRTTI 信息。
ThisType此类型。
ValueType值类型。

另见