Share via


ODataPath Class

Definition

A representation of the path portion of an OData URI which is made up of ODataPathSegments.

public class ODataPath : System.Collections.Generic.IEnumerable<Microsoft.OData.UriParser.ODataPathSegment>
type ODataPath = class
    interface seq<ODataPathSegment>
    interface IEnumerable
Public Class ODataPath
Implements IEnumerable(Of ODataPathSegment)
Inheritance
ODataPath
Derived
Implements

Constructors

ODataPath(IEnumerable<ODataPathSegment>)

Creates a new instance of ODataPath containing the given segments.

ODataPath(ODataPathSegment[])

Creates a new instance of ODataPath containing the given segments.

Properties

Count

Get the number of segments in this path.

FirstSegment

Gets the first segment in the path. Returns null if the path is empty.

LastSegment

Get the last segment in the path. Returns null if the path is empty.

Methods

GetEnumerator()

Get the segments enumerator

WalkWith(PathSegmentHandler)

Walk this path using a handler

WalkWith<T>(PathSegmentTranslator<T>)

Walk this path using a translator

Explicit Interface Implementations

IEnumerable.GetEnumerator()

get the segments enumerator

Applies to