IMetamodels.NewEnum(string, string, IPackage) method
Namespace: NextDesign.Core
Description
Generate a new enum.
argument
Name | Type | Description |
---|---|---|
name | string | enumeration type name |
values | string | literal names You can specify multiple literal names separated by commas. |
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 |