IModel.ChangeMetaclassTo Method
Namespace: NextDesign.Core
Description
Changes the class of this model to the specified class.
If the class of the model changes and the class of the owned related instance with the parent model becomes unavailable, the class of the owned related instance will be changed to the first class found.
Also, deletes the values of fields that cannot be maintained in the changed class.
Shapes that cannot be maintained in the changed class will be deleted.
Arguments
Name | Type | Description |
---|---|---|
metaclass | IClass | Metaclass. |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Argument exception | ExtensionArgumentException | When null is specified for metaclass |
Invalid operation | ExtensionInvalidOperationException | When an unchangeable class is specified for metaclass When the model itself is a deleted model or a temporary proxy |