Skip to main content

IMetamodels.MoveToPackage(string,IPackage,bool) method

Namespace: NextDesign.Core

Description

Moves the specified class under the specified package management.

argument

NameTypeDescription
classNamesstringClass names to move
You can specify multiple class names separated by commas.
newOwnerIPackageDestination package
fuzzyboolFuzzy 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

NameException ClassDescription
Class not foundExtensionTypeNotFoundExceptionIf none of the classes specified by the class name to be moved is found
Argument invalidExtensionArgumentExceptionWhen destination package is not specified
Unique Constraint ViolationExtensionDuplicationExceptionIf the specified class is moved, the class name or enum type name is duplicated at the move destination
Profile cannot be editedExtensionEditProfileExceptionIf the profile edit operation fails