Skip to main content

IMetamodels.NewEnum(string,string,IPackage) Method

Namespace: NextDesign.Core

Description​

Creates a new enumeration.

Arguments​

NameTypeDescription
namestringEnumeration name
valuesstringLiteral name
You can specify multiple literal names separated by commas.
ownerIPackagePackage to which it belongs
The default is null.

Return value​

Exception​

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null/empty string/unusable character is specified for enumeration name
If no literal name is specified
If literal name is duplicated
Profile cannot be editedExtensionEditProfileExceptionIf profile editing operation fails