IMetamodels.NewEnum(string,IEnumerable<string>,IPackage) method
Namespace: NextDesign.Core
Description
Generates a new enum.
argument
Name | Type | Description |
---|---|---|
name | string | enum name |
values | IEnumerable<string> | Literal Name |
owner | IPackage | Package it belongs to Default value is null. |
Return value
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If 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 possible | ExtensionEditProfileException | If profile editing operation fails |