 | AMLEngineAdapterInsert_NewInstance Method |
Note: This API is now obsolete.
Inserting a new class instance to this object. This method can be overridden in derived classes.
The Instance is inserted as the first instance of any other element with the same type if nothing
else is explicit defined.
Namespace: Aml.Engine.AdapterAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax[ObsoleteAttribute("Use Insert Method instead", false)]
public static bool Insert_NewInstance(
this CAEXBasicObject caexObject,
CAEXWrapper newInstanceObject,
bool asFirst = true
)
<ExtensionAttribute>
<ObsoleteAttribute("Use Insert Method instead", false)>
Public Shared Function Insert_NewInstance (
caexObject As CAEXBasicObject,
newInstanceObject As CAEXWrapper,
Optional asFirst As Boolean = true
) As Boolean
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"Use Insert Method instead", false)]
static bool Insert_NewInstance(
CAEXBasicObject^ caexObject,
CAEXWrapper^ newInstanceObject,
bool asFirst = true
)
Parameters
- caexObject CAEXBasicObject
- The CAEX object.
- newInstanceObject CAEXWrapper
- The instance of a class to be inserted at this object. The instance can be of type
- asFirst Boolean (Optional)
- if true, inserted as first (default), otherwise at last
Return Value
Boolean
True if insertion was successful, else false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CAEXBasicObject. 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