Skip to main content

IMetamodels.NewEnum(string,string,IPackage) method

Namespace: NextDesign.Core

Description​

Generate a new enum.

argument​

NameTypeDescription
namestringenum type name
valuesstringLiteral name
You can specify multiple literal names separated by commas.
ownerIPackageBelongs to the package
The default is null.

Return value​

Exceptions​

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen null/empty character/unusable character is specified for enum type name
When no literal name is specified
When literal name is duplicated
Profile cannot be editedExtensionEditProfileExceptionIf the profile edit operation fails