Skip to main content

IMetamodels.AddLiteral method

Namespace: NextDesign.Core

Description​

Adds a new enum literal with the given literal string to the given enum type.

argument​

NameTypeDescription
ownerIEnumEnum Type
literalstringliteral string

Return value​

  • void

Exceptions​

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen enum type is not specified
When null/empty character/unusable character is specified in literal string
unique constraint violationExtensionDuplicationExceptionif a literal with the specified name already exists
Profile cannot be editedExtensionEditProfileExceptionIf the profile edit operation fails