ODataPath Class

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

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataAnnotatable
    Microsoft.Data.OData.Query.SemanticAst.ODataPath
      Microsoft.Data.OData.Query.SemanticAst.ODataExpandPath
      Microsoft.Data.OData.Query.SemanticAst.ODataSelectPath

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

Syntax

'Declaration
Public Class ODataPath _
    Inherits ODataAnnotatable _
    Implements IEnumerable(Of ODataPathSegment), IEnumerable
'Usage
Dim instance As ODataPath
public class ODataPath : ODataAnnotatable, IEnumerable<ODataPathSegment>, 
    IEnumerable
public ref class ODataPath : public ODataAnnotatable, 
    IEnumerable<ODataPathSegment^>, IEnumerable
type ODataPath =  
    class 
        inherit ODataAnnotatable 
        interface IEnumerable<ODataPathSegment>
        interface IEnumerable 
    end
public class ODataPath extends ODataAnnotatable implements IEnumerable<ODataPathSegment>, IEnumerable

The ODataPath type exposes the following members.

Constructors

  Name Description
Public method ODataPath(ODataPathSegment[]) Creates a new instance of ODataPath containing the given segments.
Public method ODataPath(IEnumerable<ODataPathSegment>) Creates a new instance of ODataPath containing the given segments.

Top

Properties

  Name Description
Public property Count Get the number of segments in this path.
Public property FirstSegment Gets the first segment in the path. Returns null if the path is empty.
Public property LastSegment Get the last segment in the path. Returns null if the path is empty.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAnnotation<T> Gets or sets the annotation by type. (Inherited from ODataAnnotatable.)
Public method GetEnumerator Get the segments enumerator
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetAnnotation<T> Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public method ToString (Inherited from Object.)
Public method WalkWith(PathSegmentHandler) Walk this path using a handler
Public method WalkWith<T>(PathSegmentTranslator<T>) Walk this path using a translator

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator get the segments enumerator

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.OData.Query.SemanticAst Namespace