IMetamodels.AddLiteral method
Namespace: NextDesign.Core
Description
Adds a new enum literal with the given literal string to the given enum type.
argument
Name | Type | Description |
---|---|---|
owner | IEnum | Enum Type |
literal | string | literal string |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When enum type is not specified When null/empty character/unusable character is specified in literal string |
unique constraint violation | ExtensionDuplicationException | if a literal with the specified name already exists |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |