## IEnumerable::begin() method


获取指向集合中第一个元素（如果有）的迭代器。由于 [GetEnumerator()](../getenumerator/) 返回 T 的拷贝对象，此迭代器无法用于修改引用的对象。

```cpp
iterator System::Collections::Generic::IEnumerable<T>::begin()
```


### ReturnValue

指向集合的第一个元素（如果有）的迭代器

## 另见

* Typedef [iterator](../iterator/)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## IEnumerable::begin() const method


获取指向集合的 const 限定实例中第一个元素（如果有）的迭代器。

```cpp
const_iterator System::Collections::Generic::IEnumerable<T>::begin() const
```


### ReturnValue

指向集合的 const 限定实例的第一个元素（如果有）的迭代器

## 另见

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