TargetCollection.GetEnumerator Metodo

Definizione

Ottiene un enumeratore che scorre la raccolta TargetCollection.Gets an enumerator that iterates through the TargetCollection.

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

Restituisce

IEnumerator

IEnumerator per l'intero oggetto TargetCollection.An IEnumerator for the entire TargetCollection.

Implementazioni

Commenti

Questo metodo consente al chiamante di usare l' foreach istruzione del linguaggio C# ( for each in Visual Basic) per scorrere i singoli Target oggetti in TargetCollection .This method allows the caller to use the foreach statement of the C# language (for each in Visual Basic) to iterate through the individual Target objects in the TargetCollection.

Si applica a