Skip to main content

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

Namespace: NextDesign.Core

Description

Generate a new enum.

argument

NameTypeDescription
namestringenumeration type name
valuesIEnumerable <string>Literal Name
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