Freigeben über


Expression.Accept Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall.

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

Syntax

'Declaration
Protected Friend Overridable Function Accept ( _
    visitor As ExpressionVisitor _
) As Expression
protected internal virtual Expression Accept(
    ExpressionVisitor visitor
)

Parameters

Return Value

Type: System.Linq.Expressions.Expression
The result of visiting this node.

Remarks

This default implementation for Extension nodes calls VisitExtension. Override this method to call into a more specific method on a derived visitor class of the ExpressionVisitor class. However, it should still support unknown visitors by calling VisitExtension.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.