ODataUriParser.ParsePath Method

Parses a pathUri into a semantic ODataPath object.

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

Syntax

'Declaration
Public Function ParsePath ( _
    pathUri As Uri _
) As ODataPath
'Usage
Dim instance As ODataUriParser 
Dim pathUri As Uri 
Dim returnValue As ODataPath 

returnValue = instance.ParsePath(pathUri)
public ODataPath ParsePath(
    Uri pathUri
)
public:
ODataPath^ ParsePath(
    Uri^ pathUri
)
member ParsePath : 
        pathUri:Uri -> ODataPath
public function ParsePath(
    pathUri : Uri
) : ODataPath

Parameters

  • pathUri
    Type: System.Uri
    The absolute URI which holds the path to parse.

Return Value

Type: Microsoft.Data.OData.Query.SemanticAst.ODataPath
An ODataPath representing the metadata-bound path expression.

Exceptions

Exception Condition
ODataException

Throws if the serviceRoot member is null, or if the input path is not an absolute uri.

Remarks

This is designed to parse the Path of a URL. If it is used to parse paths that are contained within other places, such as $filter expressions, then it may not enforce correct rules.

See Also

Reference

ODataUriParser Class

Microsoft.Data.OData.Query Namespace