IMetamodels.MoveToPackage(IEnumerable<IClass>,IPackage) method
Namespace: NextDesign.Core
Description
Moves the specified class under the specified package management.
argument
| Name | Type | Description |
|---|---|---|
| targets | IEnumerable<IClass> | Class to move |
| newOwner | IPackage | Destination package |
Return value
- void
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If destination package is not specified |
| Unique constraint violation | ExtensionDuplicationException | When moving the specified class, if the class name or enumeration type name is duplicated at the destination |
| Unable to edit profile | ExtensionEditProfileException | If the profile editing operation fails - The class name specified at the destination is duplicated |