UsingTaskCollection.GetEnumerator Method

Definition

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

Returns

An IEnumerator for the entire UsingTaskCollection.

Implements

Remarks

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.

Applies to