Version

IsMutable Property

Gets the value indicating whether the Grammar or any of its related instances can be modified.
Syntax
'Declaration
 
Public ReadOnly Property IsMutable As Boolean
public bool IsMutable {get;}
Remarks

A Grammar will become immutable the first time it is used to perform lexical or syntax analysis on a document.

If the Grammar is immutable, certain operations will cause an System.InvalidOperationException:

Once a Grammar becomes immutable, it cannot become mutable again. However, a mutable copy of the Grammar can be created using the Clone method.

The Name can still be set when a Grammar is immutable because it does not affect how documents are parsed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also