Share via


EdmPathExpression Class

Definition

Represents an EDM path expression.

public class EdmPathExpression : Microsoft.OData.Edm.EdmElement, Microsoft.OData.Edm.IEdmPathExpression
type EdmPathExpression = class
    inherit EdmElement
    interface IEdmPathExpression
    interface IEdmExpression
    interface IEdmElement
Public Class EdmPathExpression
Inherits EdmElement
Implements IEdmPathExpression
Inheritance
EdmPathExpression
Derived
Implements

Constructors

EdmPathExpression(IEnumerable<String>)

Initializes a new instance of the EdmPathExpression class.

EdmPathExpression(String)

Initializes a new instance of the EdmPathExpression class.

EdmPathExpression(String[])

Initializes a new instance of the EdmPathExpression class.

Properties

ExpressionKind

Gets the kind of this expression.

Path

Gets the path string, like "A.B/C/D.E".

PathSegments

Gets the path segments as a decomposed qualified name. "A.B/C/D.E/Func1(NS.T,NS.T2)/P1" is { "A.B", "C", "D.E", "Func1(NS.T,NS.T2)", "P1" }.

Extension Methods

Location(IEdmElement)

Gets the location of this element.

TryCast(IEdmExpression, IEdmTypeReference, IEdmType, Boolean, IEnumerable<EdmError>)

Determines if the type of an expression is compatible with the provided type

TryCast(IEdmExpression, IEdmTypeReference, IEnumerable<EdmError>)

Determines if the type of an expression is compatible with the provided type

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to