## Collection::GetEnumerator method


获取枚举器以遍历集合。

```cpp
SharedPtr<Generic::IEnumerator<T>> System::Collections::ObjectModel::Collection<T>::GetEnumerator() override
```


### ReturnValue

已创建用于遍历当前集合的枚举器。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerator](../../../system.collections.generic/ienumerator/)
* Class [Collection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.Page for C++](../../../)
