 | 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.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static T AddChildWithReference<T>(
this IClassWithBaseClassReference<T> classWithBaseClass,
string name,
out bool isReferenced
)
where T : CAEXObject
<ExtensionAttribute>
Public Shared Function AddChildWithReference(Of T As CAEXObject) (
classWithBaseClass As IClassWithBaseClassReference(Of T),
name As String,
<OutAttribute> ByRef isReferenced As Boolean
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXObject
static T AddChildWithReference(
IClassWithBaseClassReference<T>^ classWithBaseClass,
String^ name,
[OutAttribute] bool% isReferenced
)
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
TThe 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