## Stack::GetEnumerator method


获取枚举器以遍历当前栈。

```cpp
IEnumeratorPtr System::Collections::Generic::Stack<T>::GetEnumerator() override
```


### ReturnValue

新创建的枚举器，用于遍历当前堆栈。

## 另见

* Typedef [IEnumeratorPtr](../ienumeratorptr/)
* Class [Stack](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
