'Declaration Public Property LanguageElement As LanguageElement
public LanguageElement LanguageElement {get; set;}
Exception | Description |
---|---|
System.InvalidOperationException | Occurs when the IsMutable value of the owning Grammar is False. |
System.ArgumentException | Occurs when the value assigned is not defined in the LanguageElement enumeration or it is the EndOfStream or Unrecognized value, as they are reserved. |
The LanguageElement can be used to classify tokens associated with the TerminalSymbol. In addition, if IsSignificant is null, the LanguageElement determines the significance of the token. If the LanguageElement is Comment, Whitespace, or Newline, the token will be insignificant. Otherwise, it will be significant.
Note: The LanguageElement values of EndOfStream and Unrecognized cannot be set on a TerminalSymbol as they are reserved for the EndOfStreamSymbol and UnrecognizedSymbol, respectively.
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