次の方法で共有


BuildItemGroupCollection Class

Definition

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This class represents a collection of persisted <ItemGroup>'s. Each MSBuild project has exactly one BuildItemGroupCollection, which includes all the imported ItemGroups as well as the ones in the main project file.

The implementation of this class is that it's basically a Facade. It just calls into the GroupingCollection within the Project to do it's work. It doesn't maintain any BuildPropertyGroup state on its own.

public ref class BuildItemGroupCollection : System::Collections::ICollection
public class BuildItemGroupCollection : System.Collections.ICollection
type BuildItemGroupCollection = class
    interface IEnumerable
    interface ICollection
type BuildItemGroupCollection = class
    interface ICollection
    interface IEnumerable
Public Class BuildItemGroupCollection
Implements ICollection
Inheritance
BuildItemGroupCollection
Implements

Remarks

Warning

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Properties

Count

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Read-only property which returns the number of ItemGroups contained in our collection.

IsSynchronized

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This ICollection property tells whether this object is thread-safe.

SyncRoot

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This ICollection property returns the object to be used to synchronize access to the class.

Methods

CopyTo(Array, Int32)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This ICollection method copies the contents of this collection to an array.

GetEnumerator()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This IEnumerable method returns an IEnumerator object, which allows the caller to enumerate through the BuildItemGroup objects contained in this BuildItemGroupCollection.

Applies to