UsingTaskCollection.GetEnumerator 方法

定义

获取循环访问 UsingTaskCollection 的枚举数。Gets an enumerator that iterates through the UsingTaskCollection.

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

返回

实现

注解

此方法允许调用foreach方使用C#语言的语句 (for each在 Visual Basic 中) 来UsingTaskCollection循环访问中的各个UsingTask对象。This method allows the caller to use the foreach statement of the C# language (for each in Visual Basic) to iterate through the individual UsingTask objects in the UsingTaskCollection.

适用于