Share via


EdmCollectionExpression Class

Definition

Represents an EDM multi-value construction expression.

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

Constructors

EdmCollectionExpression(IEdmExpression[])

Initializes a new instance of the EdmCollectionExpression class.

EdmCollectionExpression(IEdmTypeReference, IEdmExpression[])

Initializes a new instance of the EdmCollectionExpression class.

EdmCollectionExpression(IEdmTypeReference, IEnumerable<IEdmExpression>)

Initializes a new instance of the EdmCollectionExpression class.

EdmCollectionExpression(IEnumerable<IEdmExpression>)

Initializes a new instance of the EdmCollectionExpression class.

Properties

DeclaredType

Gets the declared type of the collection.

Elements

Gets the constructed element values.

ExpressionKind

Gets the kind of this expression.

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