Skip to main content

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

Namespace: NextDesign.Core

Description​

Moves the specified class to the specified package.

Arguments​

NameTypeDescription
targetsIEnumerable<IClass>Class to move
newOwnerIPackageDestination package

Return value​

  • void

Exceptions​

NameException classDescription
Invalid argumentExtensionArgumentExceptionDestination package not specified
Unique constraint violationExtensionDuplicationExceptionIf moving the specified class results in a duplicate class name or enumeration name at the destination
Profile editing not possibleExtensionEditProfileExceptionIf profile editing operation fails
-The specified class name is duplicated at the destination