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
fuzzyboolAmbiguous 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

NameException ClassDescription
Class not foundExtensionTypeNotFoundExceptionIf none of the classes specified by the class name to be moved are found
Invalid argumentExtensionArgumentExceptionIf the destination package is not specified
Unique constraint violationExtensionDuplicationExceptionWhen the specified class is moved and the class name or enumeration type name is duplicated at the destination
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails