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)


Public Overridable Function Accept(Of T) ( _
    visitor As QueryNodeVisitor(Of T) _
) As T
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
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.


Return Value

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

See Also


QueryNode Class

Microsoft.Data.OData.Query.SemanticAst Namespace