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 value type
- "RichText": Rich text type

If you specify a type name other than the above, the class Identifies a matching type as a name or an enum name.
multiplicitystringmultiplicity
- "ZeroOne" : 0 or 1
- "One" : 1
- "ZeroToMany" : 0 or more multiple
- "OneToMany" : 1 or more

Return value

  • void

Exceptions

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