Skip to main content

IMetamodels.AddProperty method

Namespace: NextDesign.Core

Description

Adds a new property to the specified class.

argument

NameTypeDescription
ownerIClassClass
namestringproperty name
typestringProperty type name
-"Object": Object type
-"String": String type
-"Integer": Integer type
-"Double ": Floating point type
-"Boolean ": Boolean type

If you specify a type name other than the above, specify the matching type as the class name or enumeration name. ..
multiplicitystringMultiplicity
-"ZeroOne": 0 or 1
-"One": 1
-"ZeroToMany": Multiple
-"OneToMany" : One or more

Return value

  • void

Exception

NameException ClassDescription
Type not foundExtensionTypeNotFoundExceptionIf the class or enumeration specified in the property type name cannot be found
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails