Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
path
Type: Microsoft.OData.Core.UriParser.Semantic.ODataPathThe ODL path to be translated.
model
Type: Microsoft.OData.Edm.IEdmModelThe model used to translate.
unresolvedPathSegment
Type: System.Web.OData.Routing.UnresolvedPathSegmentUnresolved path segment.
id
Type: Microsoft.OData.Core.UriParser.Semantic.KeySegmentThe key segment from $id.
enableUriTemplateParsing
Type: System.BooleanSpecifies the ODL path is template or not.
parameterAliasNodes
Type: System.Collections.Generic.IDictionary<String, SingleValueNode>The parameter alias nodes info.
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