ODataPath Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes an OData path.
public class ODataPath : IComparable<Microsoft.OpenApi.OData.Edm.ODataPath>, System.Collections.Generic.IEnumerable<Microsoft.OpenApi.OData.Edm.ODataSegment>
type ODataPath = class
interface seq<ODataSegment>
interface IEnumerable
interface IComparable<ODataPath>
Public Class ODataPath
Implements IComparable(Of ODataPath), IEnumerable(Of ODataSegment)
- Inheritance
-
ODataPath
- Implements
Constructors
| ODataPath(IEnumerable<ODataSegment>) |
Initializes a new instance of ODataPath class. |
| ODataPath(ODataSegment[]) |
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. |
| HttpMethods |
Gets/Sets the support HttpMethods |
| Kind |
Gets the path kind. |
| LastSegment |
Get the last segment in the path. Returns null if the path is empty. |
| PathTemplate |
Gets/Sets the path template for this path. If it is set, it will be used to generate the path item. |
| Segments |
Gets the segments. |
Methods
| Clone() |
Clone a new ODataPath object. |
| CompareTo(ODataPath) |
Compare between two ODataPath using its path item name. |
| GetCount(Boolean) |
Get the segment count. |
| GetEnumerator() |
Get the segments enumerator |
| GetPathHash(OpenApiConvertSettings) |
Provides a suffix for the operation id based on the operation path. |
| GetPathItemName() |
Gets the default path item name. |
| GetPathItemName(OpenApiConvertSettings) |
Gets the path item name. |
| ToString() |
Output the path string. |
Explicit Interface Implementations
| IEnumerable.GetEnumerator() |
Get the segments enumerator |