Compartir a través de


ProjectProperty Class

Definition

An evaluated design-time property

public ref class ProjectProperty abstract : IEquatable<Microsoft::Build::Evaluation::ProjectProperty ^>
public ref class ProjectProperty : IEquatable<Microsoft::Build::Evaluation::ProjectProperty ^>
public abstract class ProjectProperty : IEquatable<Microsoft.Build.Evaluation.ProjectProperty>
public class ProjectProperty : IEquatable<Microsoft.Build.Evaluation.ProjectProperty>
type ProjectProperty = class
    interface IEquatable<ProjectProperty>
Public MustInherit Class ProjectProperty
Implements IEquatable(Of ProjectProperty)
Public Class ProjectProperty
Implements IEquatable(Of ProjectProperty)
Inheritance
ProjectProperty
Implements

Properties

EvaluatedValue

Gets the evaluated property value. Cannot be set directly: only the unevaluated value can be set. Is never null.

IsEnvironmentProperty

Whether the property originated from the environment (or the toolset)

IsGlobalProperty

Whether the property is a global property

IsImported

If the property originated in an imported file, returns true. If the property originates from the environment, a global property, or is a built-in property, returns false. Otherwise returns false.

IsReservedProperty

Whether the property is a reserved property, like 'MSBuildProjectFile'.

Name

Name of the property. Cannot be set.

Predecessor

Any immediately previous property that was overridden by this one during evaluation. This would include all properties with the same name that lie above in the logical project file, and whose conditions evaluated to true. If there are none above this is null. If the project has not been reevaluated since the last modification this value may be incorrect.

Project

Project that this property lives in. ProjectProperty's always live in a project.

UnevaluatedValue

Gets or sets the unevaluated property value. Updates the evaluated value in the project, although this is not sure to be correct until re-evaluation.

Xml

Backing XML property. Null only if this is a global, environment, or built-in property.

Explicit Interface Implementations

IEquatable<ProjectProperty>.Equals(ProjectProperty)

Compares this property to another for equivalence.

Applies to