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
- segments
Type: System.Collections.Generic.IEnumerable<ODataPathSegment>
The segments that make up the path.
Exceptions
Exception | Condition |
---|---|
ArgumentNull(String) | Throws if input segments is null. |