BaseCollection.GetEnumerator BaseCollection.GetEnumerator BaseCollection.GetEnumerator BaseCollection.GetEnumerator Method

定义

获取能够循环访问集合成员的对象。Gets the object that enables iterating through the members of the collection.

public:
 virtual System::Collections::IEnumerator ^ GetEnumerator();
public System.Collections.IEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IEnumerator
override this.GetEnumerator : unit -> System.Collections.IEnumerator
Public Function GetEnumerator () As IEnumerator

返回

一个实现 IEnumerator 接口的对象。An object that implements the IEnumerator interface.

实现

适用于