Skip to main content

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

Namespace: NextDesign.Core

Description

Creates a new enumeration.

Arguments

NameTypeDescription
namestringEnumeration name
valuesIEnumerable<string>Literal Name
ownerIPackagePackage it belongs to
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