共用方式為


ProjectProperty.Predecessor Property

Gets the last property that was overridden by this property during evaluation.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Predecessor As ProjectProperty
public abstract ProjectProperty Predecessor { get; }
public:
virtual property ProjectProperty^ Predecessor {
    ProjectProperty^ get () abstract;
}
abstract Predecessor : ProjectProperty with get
abstract function get Predecessor () : ProjectProperty

Property Value

Type: Microsoft.Build.Evaluation.ProjectProperty
Returns the last property whose value was overridden by this property during evaluation. Returns null if the property has not been overridden.

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.

.NET Framework Security

See Also

Reference

ProjectProperty Class

Microsoft.Build.Evaluation Namespace