Skip to main content

IMetamodels.NewEnum(string,IEnumerable<string>,IPackage) method

Namespace: NextDesign.Core

Description

Generates a new enum.

argument

NameTypeDescription
namestringenum name
valuesIEnumerable<string>Literal Name
ownerIPackagePackage it belongs to
Default value is null.

Return value

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null/empty character/unusable character is specified for enumeration type name
If no literal name is specified
If literal name is duplicated
Profile editing not possibleExtensionEditProfileExceptionIf profile editing operation fails