This documentation is archived and is not being maintained.
BuildProperty Class
Visual Studio 2010
Represents a single property in an MSBuild project.
Assembly: Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)
The BuildProperty type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BuildProperty | Initializes a new instance of the BuildProperty class with the specified name and value. |
| Name | Description | |
|---|---|---|
![]() | Condition | Gets or sets the Condition attribute value of the property. |
![]() | FinalValue | Gets the final value of the property after all property evaluations have been performed. |
![]() | IsImported | Gets or sets a value indicating whether the property was imported into the project. |
![]() | Name | Gets the property name. |
![]() | Value | Gets or sets the property value. |
| Name | Description | |
|---|---|---|
![]() | Clone | Creates a deep or shallow copy of the BuildProperty. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the string that represents the property Value. (Overrides Object::ToString().) |
The following example creates a Project object and uses the LoadXml method to add content to the project. The BuildProperty, BuildPropertyGroup, and BuildPropertyGroupCollection classes are used to add, remove, and change items in the project.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
