Version

LanguageElement Property (TerminalSymbol)

Gets or sets the language element for tokens associated with this symbol.
Syntax
'Declaration
 
Public Property LanguageElement As LanguageElement
public LanguageElement LanguageElement {get; set;}
Exceptions
ExceptionDescription
System.InvalidOperationExceptionOccurs when the IsMutable value of the owning Grammar is False.
System.ArgumentExceptionOccurs when the value assigned is not defined in the LanguageElement enumeration or it is the EndOfStream or Unrecognized value, as they are reserved.
Remarks

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.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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