Share via


ODataPath Constructor (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 ( _
    ParamArray segments As ODataPathSegment() _
)
'Usage
Dim segments As ODataPathSegment()

Dim instance As New ODataPath(segments)
public ODataPath(
    params ODataPathSegment[] segments
)
public:
ODataPath(
    ... array<ODataPathSegment^>^ segments
)
new : 
        segments:ODataPathSegment[] -> ODataPath
public function ODataPath(
    ... segments : 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