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 | Fuzzy match? The default is true. If false is specified for fuzzy, the fully qualified name of the class is evaluated. If a class with the same name exists, you can move the expected class by specifying false for fuzzy and specifying the fully qualified name for classNames. |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Class not found | ExtensionTypeNotFoundException | If none of the classes specified by the class name to be moved is found |
Argument invalid | ExtensionArgumentException | When destination package is not specified |
Unique Constraint Violation | ExtensionDuplicationException | If the specified class is moved, the class name or enum type name is duplicated at the move destination |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |