QueryNode.Accept<T> Method

Accept a QueryNodeVisitor<T> that walks a tree of QueryNodes.

Namespace:  Microsoft.Data.OData.Query.SemanticAst
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Overridable Function Accept(Of T) ( _
    visitor As QueryNodeVisitor(Of T) _
) As T
'Usage
Dim instance As QueryNode 
Dim visitor As QueryNodeVisitor(Of T)
Dim returnValue As T

returnValue = instance.Accept(visitor)
public virtual T Accept<T>(
    QueryNodeVisitor<T> visitor
)
public:
generic<typename T>
virtual T Accept(
    QueryNodeVisitor<T>^ visitor
)
abstract Accept : 
        visitor:QueryNodeVisitor<'T> -> 'T 
override Accept : 
        visitor:QueryNodeVisitor<'T> -> 'T 
JScript does not support generic types and methods.

Type Parameters

  • T
    Type that the visitor will return after visiting this token.

Parameters

Return Value

Type: T
An object whose type is determined by the type parameter of the visitor.

See Also

Reference

QueryNode Class

Microsoft.Data.OData.Query.SemanticAst Namespace