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>Moving class
newOwnerIPackageDestination Package

Return value

  • void

Exception

NameException ClassDescription
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 possibleExtensionEditProfileExceptionWhen profile edit operation fails
-The class name specified in the destination is duplicated