Share via


ODataPathSegment.Translate<T> Method

Translate a ODataPathSegment using an implemntation of PathSegmentTranslator<T>.

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

Syntax

'Declaration
Public MustOverride Function Translate(Of T) ( _
    translator As PathSegmentTranslator(Of T) _
) As T
'Usage
Dim instance As ODataPathSegment 
Dim translator As PathSegmentTranslator(Of T)
Dim returnValue As T

returnValue = instance.Translate(translator)
public abstract T Translate<T>(
    PathSegmentTranslator<T> translator
)
public:
generic<typename T>
virtual T Translate(
    PathSegmentTranslator<T>^ translator
) abstract
abstract Translate : 
        translator:PathSegmentTranslator<'T> -> 'T 
JScript does not support generic types and methods.

Type Parameters

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

Parameters

Return Value

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

See Also

Reference

ODataPathSegment Class

Microsoft.Data.OData.Query.SemanticAst Namespace