Skip to main content

IMetamodels.AddLiteral method

Namespace: NextDesign.Core

Description

Adds a new enum literal with the specified literal string to the specified enum.

argument

NameTypeDescription
ownerIEnumEnum Type
literalstringliteral string

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen enumeration type is not specified
When null/empty string/unusable character is specified in the literal string
Unique constraint violationExtensionDuplicationExceptionIf a literal with the specified name already exists
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails