System::Collections::CollectionBase 类

CollectionBase class

提供用于强类型集合的抽象基类。

template<typename T>class CollectionBase : public virtual System::Collections::Generic::IEnumerable<T>
参数描述
T集合中元素的类型

Nested classes

方法

方法描述
Clear()从集合实例中移除所有对象。此方法不可被重写。
get_Capacity()返回集合可以容纳的元素数量。
get_Count()返回集合实例中包含的元素数量。此方法不可被重写。
GetEnumerator() override返回一个遍历集合实例的枚举器。
RemoveAt(int32_t)移除集合实例中指定索引处的元素。此方法不可被覆盖。
set_Capacity(int32_t)设置集合可以容纳的元素数量。
SetTemplateWeakPtr(uint32_t) override将第 n 个模板参数设置为弱指针(而不是共享指针)。允许在容器中将指针切换为弱模式。

Typedefs

类型定义描述
Ptr此类实例的共享指针别名。

另见