共用方式為


ProjectPropertyInstance.IsImmutable Property

Returns true if this object is immutable; false otherwise.

An immutable object cannot be made mutable.

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

Syntax

'Declaration
Public Overridable ReadOnly Property IsImmutable As Boolean
public virtual bool IsImmutable { get; }
public:
virtual property bool IsImmutable {
    bool get ();
}
abstract IsImmutable : bool with get 
override IsImmutable : bool with get
function get IsImmutable () : boolean

Property Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

ProjectPropertyInstance Class

Microsoft.Build.Execution Namespace