ToolsetCollection.GetEnumerator 方法

定义

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

public:
 virtual System::Collections::Generic::IEnumerator<Microsoft::Build::BuildEngine::Toolset ^> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<Microsoft.Build.BuildEngine.Toolset> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<Microsoft.Build.BuildEngine.Toolset>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<Microsoft.Build.BuildEngine.Toolset>
Public Function GetEnumerator () As IEnumerator(Of Toolset)

返回

实现

注解

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

适用于