Click or drag to resize

AMLPortInsert(CAEXWrapper, Boolean) Method

Inserts the specified CAEX object in it's associated container. AMLPort objects are not allowed to contain child InternalElement objects. If an InternalElement is tried to insert, the result is false.

Namespace: Aml.Engine.AmlObjects
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public override bool Insert(
	CAEXWrapper caexObject,
	bool asFirst = true
)

Parameters

caexObject  CAEXWrapper
The CAEX object.
asFirst  Boolean  (Optional)
if set to true the element is inserted at the first position in it's container.

Return Value

Boolean
true, if the provided CAEX object is inserted; If a copy of the CAEX object has been inserted or the provided CAEX object doesn't represent a valid member of any sequence the result is false.

Implements

ICAEXBasicObjectInsert(CAEXWrapper, Boolean)
ICAEXBasicObjectInsert(CAEXWrapper, Boolean)
ICAEXContainerInsert(CAEXWrapper, Boolean)
ICAEXBasicObjectInsert(CAEXWrapper, Boolean)
Exceptions
ExceptionCondition
ArgumentNullExceptioncaexObject
Remarks
If the provided CAEX object already has an associated parent, a 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