Skip to main content

IMetamodels.NewEnum(string, string, IPackage) method

Namespace: NextDesign.Core

Description

Generate a new enum.

argument

NameTypeDescription
namestringenumeration type name
valuesstringliteral names
You can specify multiple literal names separated by commas.
ownerIPackageAffiliated package
The default value is null.

Return value

Exception

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen null/empty string/unusable character is specified in the enumeration type name
When no literal name is specified
When the literal name is duplicated
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails