IMetamodels.NewEnum(string,string,IPackage) method
Namespace: NextDesign.Core
Description
Generate a new enum.
argument
Name | Type | Description |
---|---|---|
name | string | enum type name |
values | string | Literal name You can specify multiple literal names separated by commas. |
owner | IPackage | Belongs to the package The default is null. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When null/empty character/unusable character is specified for enum type name When no literal name is specified When literal name is duplicated |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |