Click or drag to resize

ObjectWithBaseClassAddChildWithReferenceT Method

Appends a new element of the same type as a child element and adds a reference from the child to this element.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static T AddChildWithReference<T>(
	this IClassWithBaseClassReference<T> classWithBaseClass,
	string name,
	out bool isReferenced
)
where T : CAEXObject

Parameters

classWithBaseClass  IClassWithBaseClassReferenceT
The class to which a child class is added
name  String
The name of the appended child
isReferenced  Boolean
true, if the reference could be created; false otherwise

Type Parameters

T
The CAEXObject type

Return Value

T
The added child

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IClassWithBaseClassReferenceT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also