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