 | AMLEngineAdapterAssignNewGUIDsAndRedirectExistingInternalLinksAndMirrorObjects Method |
Note: This API is now obsolete.
This Method assigns new GUIds to the SystemUnitClass and its subordinate Children, which have an ID. The References
to the
old IDs in Mirrors and InternalLinks are redirected to the new ID. If a Reference is not found in any of the
subordinate
Elements, the Reference will not be changed.
Namespace: Aml.Engine.AdapterAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax[ObsoleteAttribute("Make a copy instead and replace the existing class using the copy",
true)]
public static void AssignNewGUIDsAndRedirectExistingInternalLinksAndMirrorObjects(
this SystemUnitClassType systemUnitClass,
bool includeSystemUnitClasses = false
)
<ExtensionAttribute>
<ObsoleteAttribute("Make a copy instead and replace the existing class using the copy",
true)>
Public Shared Sub AssignNewGUIDsAndRedirectExistingInternalLinksAndMirrorObjects (
systemUnitClass As SystemUnitClassType,
Optional includeSystemUnitClasses As Boolean = false
)
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"Make a copy instead and replace the existing class using the copy",
true)]
static void AssignNewGUIDsAndRedirectExistingInternalLinksAndMirrorObjects(
SystemUnitClassType^ systemUnitClass,
bool includeSystemUnitClasses = false
)
Parameters
- systemUnitClass SystemUnitClassType
- The system unit class.
- includeSystemUnitClasses Boolean (Optional)
- if set to true [include system unit classes].
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SystemUnitClassType. 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).
Remarks
If you want an assignment of new GUIDs with updated references, make a copy of the SystemUnitClass and replace the
old
class with the new class.
See Also