Skip to main content

IMetamodels.MoveToPackage(IEnumerable<IClass>,IPackage) method

Namespace: NextDesign.Core

Description

Moves the specified class under the specified package management.

argument

NameTypeDescription
targetsIEnumerable<IClass>Class to move
newOwnerIPackageDestination package

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf destination package is not specified
Unique constraint violationExtensionDuplicationExceptionWhen moving the specified class, if the class name or enumeration type name is duplicated at the destination
Unable to edit profileExtensionEditProfileExceptionIf the profile editing operation fails
- The class name specified at the destination is duplicated