ODataSelectPath Constructor (IEnumerable<ODataPathSegment>)
Create an ODataSelectPath
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 ODataSelectPath(segments)
public ODataSelectPath(
IEnumerable<ODataPathSegment> segments
)
public:
ODataSelectPath(
IEnumerable<ODataPathSegment^>^ segments
)
new :
segments:IEnumerable<ODataPathSegment> -> ODataSelectPath
public function ODataSelectPath(
segments : IEnumerable<ODataPathSegment>
)
Parameters
- segments
Type: System.Collections.Generic.IEnumerable<ODataPathSegment>
The list of segments that makes up this path.
Exceptions
Exception | Condition |
---|---|
ODataException | Throws if the list of segments doesn't match the requirements for a path in $select |