ProjectMetadata.Predecessor Property

Definition

Any immediately previous metadatum (from item definition or item) that was overridden by this one during evaluation. This would include all metadata with the same name that lie above in the logical project file, who are on item definitions of the same type, and whose conditions evaluated to true. If this metadatum is on an item, it would include any previous metadatum with the same name on the same item whose condition evaluated to true, and following that any item definition metadata. 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:
 property Microsoft::Build::Evaluation::ProjectMetadata ^ Predecessor { Microsoft::Build::Evaluation::ProjectMetadata ^ get(); };
public Microsoft.Build.Evaluation.ProjectMetadata Predecessor { get; }
public Microsoft.Build.Evaluation.ProjectMetadata Predecessor { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
member this.Predecessor : Microsoft.Build.Evaluation.ProjectMetadata
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Predecessor : Microsoft.Build.Evaluation.ProjectMetadata
Public ReadOnly Property Predecessor As ProjectMetadata

Property Value

The last metadata (from an item definition or item) whose value was overridden by this metadata during evaluation, or null if the metadata has not been overridden.

Attributes

Remarks

This method searches for all metadata with the same name that lie above in the logical project file, and which are contained by item definitions of the same item type, and whose conditions evaluate to true. If the metadata is contained by an item, this method searches for any previous metadata with the same name and item whose condition evaluated to true. Item definitions are searched before items.

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

Applies to