Skip to main content

IMetamodels.AddLiteral Method

Namespace: NextDesign.Core

Description​

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

Arguments​

NameTypeDescription
ownerIEnumEnum Type
literalstringLiteral string

Return value​

  • void

Exceptions​

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf enumeration type is not specified
If null/empty string/unusable character is specified in literal string
Unique constraint violationExtensionDuplicationExceptionIf a literal with the specified name already exists
Profile cannot be editedExtensionEditProfileExceptionIf profile editing operation fails