Freigeben über


ProjectRootElement.Condition Property

Gets null because the Condition attribute is nonexistent for this element and a nonexistent condition is implicitly true.

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.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Overrides Property Condition As String
public override string Condition { get; set; }
public:
virtual property String^ Condition {
    String^ get () override;
    void set (String^ value) override;
}
abstract Condition : string with get, set 
override Condition : string with get, set
override function get Condition () : String 
override function set Condition (value : String)

Property Value

Type: System.String
Returns a null.

.NET Framework Security

See Also

Reference

ProjectRootElement Class

Microsoft.Build.Construction Namespace