TargetCollection.GetEnumerator 方法
定义
获取循环访问 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
返回
用于整个 TargetCollection 的 IEnumerator。An IEnumerator for the entire TargetCollection.
实现
注解
此方法允许调用方使用 foreach Visual Basic) 中的 c # 语言 (语句 for each 来循环访问中的各个 Target 对象 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.