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 | |
---|---|---|
ODataPath(ODataPathSegment[]) | Creates a new instance of ODataPath containing the given segments. | |
ODataPath(IEnumerable<ODataPathSegment>) | Creates a new instance of ODataPath containing the given segments. |
Top
Properties
Name | Description | |
---|---|---|
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. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetAnnotation<T> | Gets or sets the annotation by type. (Inherited from ODataAnnotatable.) | |
GetEnumerator | Get the segments enumerator | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
SetAnnotation<T> | Sets an annotation of type T. (Inherited from ODataAnnotatable.) | |
ToString | (Inherited from Object.) | |
WalkWith(PathSegmentHandler) | Walk this path using a handler | |
WalkWith<T>(PathSegmentTranslator<T>) | Walk this path using a translator |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.