Share via


CollectionNavigationNode.Accept<T> Method (QueryNodeVisitor<T>)

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 Overrides Function Accept(Of T) ( _
    visitor As QueryNodeVisitor(Of T) _
) As T
'Usage
Dim instance As CollectionNavigationNode 
Dim visitor As QueryNodeVisitor(Of T)
Dim returnValue As T

returnValue = instance.Accept(visitor)
public override T Accept<T>(
    QueryNodeVisitor<T> visitor
)
public:
generic<typename T>
virtual T Accept(
    QueryNodeVisitor<T>^ visitor
) override
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.

Exceptions

Exception Condition
ArgumentNullException

Throws if the input visitor is null.

See Also

Reference

CollectionNavigationNode Class

Accept Overload

Microsoft.Data.OData.Query.SemanticAst Namespace