IMetamodels.MoveToPackage(string, IPackage, bool) method
Namespace: NextDesign.Core
Description
Moves the specified class under the specified package management.
argument
| Name | Type | Description |
|---|---|---|
| classNames | string | Class names to move You can specify multiple class names separated by commas. |
| newOwner | IPackage | Destination Package |
| fuzzy | bool | Ambiguous match The default value is true. If fuzzy is specified as false, the class name is evaluated as a fully qualified name. If a class with the same name exists, you can move the expected class by specifying false for fuzzy and the fully qualified name for classNames. |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Class not found | ExtensionTypeNotFoundException | If none of the classes specified by the class name to be moved are found |
| Invalid argument | ExtensionArgumentException | If the destination package is not specified |
| Unique constraint violation | ExtensionDuplicationException | When the specified class is moved and the class name or enumeration type name is duplicated at the destination |
| Profile edit not possible | ExtensionEditProfileException | If profile edit operation fails |