Share via


ODataPath Class

Provides an object representation for an OData path with additional information about the EDM type and entity set for the path.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Routing.ODataPath

Namespace:  System.Web.Http.OData.Routing
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
<ODataPathParameterBindingAttribute> _
Public Class ODataPath
'Usage
Dim instance As ODataPath
[ODataPathParameterBindingAttribute]
public class ODataPath
[ODataPathParameterBindingAttribute]
public ref class ODataPath
[<ODataPathParameterBindingAttribute>]
type ODataPath =  class end
public class ODataPath

The ODataPath type exposes the following members.

Constructors

  Name Description
Public method ODataPath(IList<ODataPathSegment>) Initializes a new instance of the ODataPath class.
Public method ODataPath(array<ODataPathSegment[]) Initializes a new instance of the ODataPath class.

Top

Properties

  Name Description
Public property EdmType Gets or sets the EDM type of the path.
Public property EntitySet Gets or sets the entity set of the path.
Public property PathTemplate Gets the path template describing the types of segments in the path.
Public property Segments Gets the path segments for the OData path.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns the string representation of the ODataPath object. (Overrides Object.ToString().)

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

System.Web.Http.OData.Routing Namespace