Partager via


BuildPropertyGroupCollection 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 <PropertyGroup>'s. Each MSBuild project has exactly one BuildPropertyGroupCollection, which includes all the imported PropertyGroups 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 BuildPropertyGroupCollection : System::Collections::ICollection
public class BuildPropertyGroupCollection : System.Collections.ICollection
type BuildPropertyGroupCollection = class
    interface ICollection
    interface IEnumerable
Public Class BuildPropertyGroupCollection
Implements ICollection
Inheritance
BuildPropertyGroupCollection
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 PropertyGroups 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 BuildPropertyGroup objects contained in this BuildPropertyGroupCollection.

Applies to