Partager via


ODataPathSegmentTranslator.Translate Method

 

Namespace:   System.Web.OData.Routing
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod Translate(BatchReferenceSegment)

Translate a BatchReferenceSegment (Overrides PathSegmentTranslator<T>.Translate(BatchReferenceSegment).)

System_CAPS_pubmethod Translate(BatchSegment)

Translate a BatchSegment (Overrides PathSegmentTranslator<T>.Translate(BatchSegment).)

System_CAPS_pubmethod Translate(CountSegment)

Translate a CountSegment (Overrides PathSegmentTranslator<T>.Translate(CountSegment).)

System_CAPS_pubmethod Translate(EntitySetSegment)

Translate an EntitySetSegment (Overrides PathSegmentTranslator<T>.Translate(EntitySetSegment).)

System_CAPS_pubmethod Translate(KeySegment)

Translate a KeySegment (Overrides PathSegmentTranslator<T>.Translate(KeySegment).)

System_CAPS_pubmethod Translate(MetadataSegment)

Translate a MetadataSegment (Overrides PathSegmentTranslator<T>.Translate(MetadataSegment).)

System_CAPS_pubmethod Translate(NavigationPropertyLinkSegment)

Visit a NavigationPropertyLinkSegment (Overrides PathSegmentTranslator<T>.Translate(NavigationPropertyLinkSegment).)

System_CAPS_pubmethod Translate(NavigationPropertySegment)

Translate a NavigationPropertySegment (Overrides PathSegmentTranslator<T>.Translate(NavigationPropertySegment).)

System_CAPS_pubmethod Translate(OpenPropertySegment)

Translate an OpenPropertySegment (Overrides PathSegmentTranslator<T>.Translate(OpenPropertySegment).)

System_CAPS_pubmethod Translate(OperationImportSegment)

Translate a OperationImportSegment (Overrides PathSegmentTranslator<T>.Translate(OperationImportSegment).)

System_CAPS_pubmethod Translate(OperationSegment)

Translate a OperationSegment (Overrides PathSegmentTranslator<T>.Translate(OperationSegment).)

System_CAPS_pubmethod Translate(PathTemplateSegment)

Translate a PathTemplateSegment (Overrides PathSegmentTranslator<T>.Translate(PathTemplateSegment).)

System_CAPS_pubmethod Translate(PropertySegment)

Translate a PropertySegment (Overrides PathSegmentTranslator<T>.Translate(PropertySegment).)

System_CAPS_pubmethod Translate(SingletonSegment)

Translate an SingletonSegment (Overrides PathSegmentTranslator<T>.Translate(SingletonSegment).)

System_CAPS_pubmethod Translate(TypeSegment)

Translate a TypeSegment (Overrides PathSegmentTranslator<T>.Translate(TypeSegment).)

System_CAPS_pubmethod Translate(ValueSegment)

Translate a ValueSegment (Overrides PathSegmentTranslator<T>.Translate(ValueSegment).)

See Also

ODataPathSegmentTranslator Class
System.Web.OData.Routing Namespace

Return to top

ODataPathSegmentTranslator.Translate Method (BatchReferenceSegment)

Translate a BatchReferenceSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    BatchReferenceSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    BatchReferenceSegment^ segment
) override
override Translate : 
        segment:BatchReferenceSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As BatchReferenceSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (BatchSegment)

Translate a BatchSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    BatchSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    BatchSegment^ segment
) override
override Translate : 
        segment:BatchSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As BatchSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (CountSegment)

Translate a CountSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    CountSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    CountSegment^ segment
) override
override Translate : 
        segment:CountSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As CountSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (EntitySetSegment)

Translate an EntitySetSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    EntitySetSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    EntitySetSegment^ segment
) override
override Translate : 
        segment:EntitySetSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As EntitySetSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (KeySegment)

Translate a KeySegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    KeySegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    KeySegment^ segment
) override
override Translate : 
        segment:KeySegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As KeySegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (MetadataSegment)

Translate a MetadataSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    MetadataSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    MetadataSegment^ segment
) override
override Translate : 
        segment:MetadataSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As MetadataSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (NavigationPropertyLinkSegment)

Visit a NavigationPropertyLinkSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    NavigationPropertyLinkSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    NavigationPropertyLinkSegment^ segment
) override
override Translate : 
        segment:NavigationPropertyLinkSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As NavigationPropertyLinkSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (NavigationPropertySegment)

Translate a NavigationPropertySegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    NavigationPropertySegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    NavigationPropertySegment^ segment
) override
override Translate : 
        segment:NavigationPropertySegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As NavigationPropertySegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (OpenPropertySegment)

Translate an OpenPropertySegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    OpenPropertySegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    OpenPropertySegment^ segment
) override
override Translate : 
        segment:OpenPropertySegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As OpenPropertySegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (OperationImportSegment)

Translate a OperationImportSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    OperationImportSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    OperationImportSegment^ segment
) override
override Translate : 
        segment:OperationImportSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As OperationImportSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (OperationSegment)

Translate a OperationSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    OperationSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    OperationSegment^ segment
) override
override Translate : 
        segment:OperationSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As OperationSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (PathTemplateSegment)

Translate a PathTemplateSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    PathTemplateSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    PathTemplateSegment^ segment
) override
override Translate : 
        segment:PathTemplateSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As PathTemplateSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

  • segment
    Type: Microsoft.OData.Core.UriParser.Semantic.PathTemplateSegment

    the segment to Translate

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (PropertySegment)

Translate a PropertySegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    PropertySegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    PropertySegment^ segment
) override
override Translate : 
        segment:PropertySegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As PropertySegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (SingletonSegment)

Translate an SingletonSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    SingletonSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    SingletonSegment^ segment
) override
override Translate : 
        segment:SingletonSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As SingletonSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top

ODataPathSegmentTranslator.Translate Method (TypeSegment)

Translate a TypeSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    TypeSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    TypeSegment^ segment
) override
override Translate : 
        segment:TypeSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As TypeSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment

Return to top

ODataPathSegmentTranslator.Translate Method (ValueSegment)

Translate a ValueSegment

Syntax

public override IEnumerable<ODataPathSegment> Translate(
    ValueSegment segment
)
public:
virtual IEnumerable<ODataPathSegment^>^ Translate(
    ValueSegment^ segment
) override
override Translate : 
        segment:ValueSegment -> IEnumerable<ODataPathSegment>
Public Overrides Function Translate (
    segment As ValueSegment
) As IEnumerable(Of ODataPathSegment)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ODataPathSegment>

Translated WebApi path segment.

Return to top