Partager via


ODataPathSegmentTranslator.TranslateODataLibPathToWebApiPath Method (ODataPath, IEdmModel, UnresolvedPathSegment, KeySegment, Boolean, IDictionary<String, SingleValueNode>)

 

Translates an ODL path to Web API path.

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

Syntax

public static ODataPath TranslateODataLibPathToWebApiPath(
    ODataPath path,
    IEdmModel model,
    UnresolvedPathSegment unresolvedPathSegment,
    KeySegment id,
    bool enableUriTemplateParsing,
    IDictionary<string, SingleValueNode> parameterAliasNodes
)
public:
static ODataPath^ TranslateODataLibPathToWebApiPath(
    ODataPath^ path,
    IEdmModel^ model,
    UnresolvedPathSegment^ unresolvedPathSegment,
    KeySegment^ id,
    bool enableUriTemplateParsing,
    IDictionary<String^, SingleValueNode^>^ parameterAliasNodes
)
static member TranslateODataLibPathToWebApiPath : 
        path:ODataPath *
        model:IEdmModel *
        unresolvedPathSegment:UnresolvedPathSegment *
        id:KeySegment *
        enableUriTemplateParsing:bool *
        parameterAliasNodes:IDictionary<string, SingleValueNode> -> ODataPath
Public Shared Function TranslateODataLibPathToWebApiPath (
    path As ODataPath,
    model As IEdmModel,
    unresolvedPathSegment As UnresolvedPathSegment,
    id As KeySegment,
    enableUriTemplateParsing As Boolean,
    parameterAliasNodes As IDictionary(Of String, SingleValueNode)
) As ODataPath

Parameters

  • enableUriTemplateParsing
    Type: System.Boolean

    Specifies the ODL path is template or not.

Return Value

Type: System.Web.OData.Routing.ODataPath

The translated Web API path.

See Also

ODataPathSegmentTranslator Class
System.Web.OData.Routing Namespace

Return to top