Condividi tramite


KeySegment.TranslateWith<T>(PathSegmentTranslator<T>) Metodo

Definizione

Tradurre un KeySegment oggetto usando un'istanza di PathSegmentTranslator<T>.

public override T TranslateWith<T> (Microsoft.OData.UriParser.PathSegmentTranslator<T> translator);
override this.TranslateWith : Microsoft.OData.UriParser.PathSegmentTranslator<'T> -> 'T
Public Overrides Function TranslateWith(Of T) (translator As PathSegmentTranslator(Of T)) As T

Parametri di tipo

T

Digitare che il traduttore restituirà dopo aver visitato questo token.

Parametri

translator
PathSegmentTranslator<T>

Implementazione dell'interfaccia del convertitore.

Restituisce

T

Oggetto il cui tipo viene determinato dal parametro di tipo del convertitore.

Eccezioni

Genera un'eccezione se il convertitore di input è Null.

Si applica a