IMetamodels.NewEnum(string,IEnumerable<string>,IPackage) Method
Namespace: NextDesign.Core
Description
Creates a new enumeration.
Arguments
| Name | Type | Description |
|---|---|---|
| name | string | Enumeration name |
| values | IEnumerable<string> | Literal Name |
| owner | IPackage | Package it belongs to The default is null. |
Return value
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If null/empty string/unusable character is specified for enumeration name If no literal name is specified If literal name is duplicated |
| Profile cannot be edited | ExtensionEditProfileException | If profile editing operation fails |