Version

PreferredSubTreeRoot Property

Gets or sets the root node of the sub-tree which should be chosen when constructing the final parse tree.
Syntax
'Declaration
 
Public Property PreferredSubTreeRoot As SyntaxNode
public SyntaxNode PreferredSubTreeRoot {get; set;}
Exceptions
ExceptionDescription
System.ArgumentExceptionOccurs when the specified value is not null, SubTreeRoot1, or SubTreeRoot2.
Remarks

A global ambiguity occurs when the same span of text in a document can be interpreted in two or more different ways based on the grammar rules for the language and the context in which text occurs. Code handling global ambiguities can determine which sub-trees should be used in the final tree by setting PreferredSubTreeRoot.

Note: The only valid values are null or the instances returned by SubTreeRoot1 or SubTreeRoot2.

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