ReservationCollection.IEnumerable.GetEnumerator 方法

定义

返回一个可以循环访问 ReservationCollection 的枚举器。Returns an enumerator that can iterate through the ReservationCollection. 无法继承此方法。This method cannot be inherited.

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

返回

IEnumerator

一个可循环访问 ReservationCollection 的枚举数。An enumerator that can iterate through the ReservationCollection.

实现

例外

操作由于以下原因之一而无效:The operation is invalid for one of the following reasons: - 枚举已经终止。- The enumeration has ended.

- 集合已修改。- The collection has been modified.

- 枚举尚未开始。- The enumeration has not been started. 必须调用 MoveNext()A call to MoveNext() must be made.

该方法是在序列已释放之后调用的。The method was called after the sequence has been disposed of.

没有足够的内存来继续执行该程序。There is not enough memory to continue the execution of the program.

操作系统拒绝了对指定的日志存储区的访问。Access for the specified log store is denied by the operating system.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ReservationCollection 实例被强制转换为 IEnumerable 接口时使用。It can be used only when the ReservationCollection instance is cast to an IEnumerable interface.

适用于