Share via


ODataPath Constructor (IEnumerable<ODataPathSegment>)

Creates a new instance of ODataPath containing the given segments.

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

Syntax

'Declaration
Public Sub New ( _
    segments As IEnumerable(Of ODataPathSegment) _
)
'Usage
Dim segments As IEnumerable(Of ODataPathSegment)

Dim instance As New ODataPath(segments)
public ODataPath(
    IEnumerable<ODataPathSegment> segments
)
public:
ODataPath(
    IEnumerable<ODataPathSegment^>^ segments
)
new : 
        segments:IEnumerable<ODataPathSegment> -> ODataPath
public function ODataPath(
    segments : IEnumerable<ODataPathSegment>
)

Parameters

Exceptions

Exception Condition
ArgumentNull(String)

Throws if input segments is null.

See Also

Reference

ODataPath Class

ODataPath Overload

Microsoft.Data.OData.Query.SemanticAst Namespace