ProjectProperty.Predecessor Property

Definition

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.

public abstract Microsoft.Build.Evaluation.ProjectProperty Predecessor { get; }
public Microsoft.Build.Evaluation.ProjectProperty Predecessor { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The last property whose value was overridden by this property during evaluation, or null if the property has not been overridden.

Attributes

Remarks

This method searches for all properties with the same name that lie above in the logical project file, and whose conditions evaluate to true.

If the project has not been reevaluated since the last modification, this value may be incorrect.

Applies to