System::Net::Http::Headers::ObjectCollection 类

ObjectCollection class

表示对象的集合。

template<typename T>class ObjectCollection : public System::Collections::ObjectModel::Collection<T>
参数描述
T对象类型。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

方法

方法描述
ObjectCollection()RTTI 信息。
ObjectCollection(Action<T>)构造一个新实例。
SetTemplateWeakPtr(uint32_t) override将第 n 个模板参数设置为弱指针(而不是共享指针)。允许在容器中将指针切换为弱模式。

另见