Click or drag to resize

CAEXSequenceTInsert Method

Inserts the specified CAEX object into this sequence. If no position is specified the element is appended. If 'asFirst' is set to true, the element is prepended to already existing ones.

Namespace: Aml.Engine.CAEX
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public virtual T Insert(
	T caexObject,
	bool asFirst = true
)

Parameters

caexObject  T
the CAEX object
asFirst  Boolean  (Optional)
optional parameter, if set to true (default) the object is prepended to already existing ones, otherwise it is appended.

Return Value

T
The inserted CAEX object. If the provided CAEX object already belongs to a sequence, a copy of the CAEX object is inserted and returned as the result.
Remarks
If the provided CAEX object already has an associated parent, a deep copy of the CAEX object and not the original provided CAEX Object is inserted. Please keep in mind, that the copied object contains identical attributes and elements. It might not represent a valid AutomationML object, because IDs and references are not automatically modified.
See Also