CountSegment.Translate<T> Method (PathSegmentTranslator<T>)

Translate a CountSegment using an instance of PathSegmentTranslator<T>.

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

Syntax

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

returnValue = instance.Translate(translator)
public override T Translate<T>(
    PathSegmentTranslator<T> translator
)
public:
generic<typename T>
virtual T Translate(
    PathSegmentTranslator<T>^ translator
) override
abstract Translate : 
        translator:PathSegmentTranslator<'T> -> 'T 
override 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.

Exceptions

Exception Condition
ArgumentNullException

Throws if the input translator is null.

See Also

Reference

CountSegment Class

Translate Overload

Microsoft.Data.OData.Query.SemanticAst Namespace