VisitChildren Method
TOC
Collapse the table of content
Expand the table of content

Expression.VisitChildren Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Protected Friend Overridable Function VisitChildren ( _
	visitor As ExpressionVisitor _
) As Expression

Return Value

Type: System.Linq.Expressions.Expression
The expression being visited, or an expression which should replace it in the tree.

Override this method to provide logic to walk the node's children. A typical implementation will call visitor.Visit on each of its children, and if any of them change, should return a new copy of itself with the modified children.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft