IMetamodels.AddLiteral Method
Namespace: NextDesign.Core
Description
Adds a new enumeration literal to the specified enumeration with the specified literal string.
Arguments
| Name | Type | Description |
|---|---|---|
| owner | IEnum | Enum Type |
| literal | string | Literal string |
Return value
- void
Exceptions
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If enumeration type is not specified If null/empty string/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 profile editing operation fails |