Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

T_CAEX_ClassModel_Validation_ElementCollection_1

AutomationML edited this page Feb 23, 2017 · 2 revisions

ElementCollection(T) Class

Class ElementCollection is a List of XmlElements or ReferenceElement. This class overrides the Contains-Method.

Inheritance Hierarchy

System.Object
  CAEX_ClassModel.Validation.ElementCollection(T)
Namespace: CAEX_ClassModel.Validation
Assembly: AMLEngine (in AMLEngine.dll) Version: 3.5

Syntax

C#

public class ElementCollection<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

C++

generic<typename T>
public ref class ElementCollection : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

 

T
Should be either XmlElement or ReferenceElement.
  The ElementCollection(T) type exposes the following members.

Constructors

 

Name Description
Public method ElementCollection(T) Initializes a new instance of the ElementCollection(T) class
  Back to Top

Properties

 

Name Description
Public property Count Gets the number of elements contained in the ICollection(T).
Public property IsReadOnly Gets a value indicating whether the ICollection(T) is read-only.
Public property Item Gets or sets the element at the specified index.
  Back to Top

Methods

 

Name Description
Public method Add Adds an item to the ICollection(T).
Public method Clear Removes all items from the ICollection(T).
Public method Contains Determines whether the ICollection(T) contains a specific value.
Public method CopyTo Copies the array elements, starting from the specified index, to the collection.
Public method Elements If the collection contains ReferenceElements, alls ReferenceElements with a reference to the XmlElement are returned.
Public method GetEnumerator Returns an enumerator that iterates through the collection.
Public method IndexOf Determines the index of a specific item in the IList(T).
Public method Insert Inserts an item to the IList(T) at the specified index.
Public method Remove Removes the first occurrence of a specific object from the ICollection(T).
Public method RemoveAt Removes the IList(T) item at the specified index.
  Back to Top

Extension Methods

 

Name Description
Public Extension Method FindCaexObjectByName Find a Caex-Object by Name in the provided Collection of CAEXObjects (Defined by MappingExtension.)
  Back to Top

Explicit Interface Implementations

 

Name Description
Explicit interface implementationPrivate method IEnumerable.GetEnumerator Gibt einen Enumerator zurück, der eine Auflistung durchläuft.
  Back to Top

See Also

Reference

CAEX_ClassModel.Validation Namespace

  • Introduction
  • [Version History](Version history)
    • [Version 3.5](Version 3.4)
    • [Version 3.1](Version 3.0)
    • [Version 2.1](Version 2.1)
    • [Version 2.0](Version 2.0)
  • [Getting Started](Getting started)
  • Examples
  • AMLEngine API
BEST Practice Content

Extensions

CAEX Elements

AutomationML

Utilities

Interfaceclasses

Exceptions

Objecttables and Document validation

Clone this wiki locally