IMetamodels.NewEnum(string, IEnumerable <string>, IPackage) method
Namespace: NextDesign.Core
Description
Generate a new enum.
argument
| Name | Type | Description |
|---|---|---|
| name | string | enumeration type name |
| values | IEnumerable <string> | Literal Name |
| owner | IPackage | Affiliated package The default value is null. |
Return value
Exception
| Name | Exception Class | Description |
|---|---|---|
| Argument invalid | ExtensionArgumentException | When 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 possible | ExtensionEditProfileException | If profile edit operation fails |