Share via


EdmIfExpression Class

Definition

Represents an EDM if expression.

public class EdmIfExpression : Microsoft.OData.Edm.EdmElement, Microsoft.OData.Edm.Vocabularies.IEdmIfExpression
type EdmIfExpression = class
    inherit EdmElement
    interface IEdmIfExpression
    interface IEdmExpression
    interface IEdmElement
Public Class EdmIfExpression
Inherits EdmElement
Implements IEdmIfExpression
Inheritance
EdmIfExpression
Implements

Constructors

EdmIfExpression(IEdmExpression, IEdmExpression, IEdmExpression)

Initializes a new instance of the EdmIfExpression class.

Properties

ExpressionKind

Gets the kind of this expression.

FalseExpression

Gets the expression to evaluate if TestExpression evaluates to false.

TestExpression

Gets the test expression.

TrueExpression

Gets the expression to evaluate if TestExpression evaluates to true.

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