IMetamodels.AddProperty method
Namespace: NextDesign.Core
Description
Adds a new property to the specified class.
argument
Name | Type | Description |
---|---|---|
owner | IClass | Class |
name | string | property name |
type | string | Property 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. .. |
multiplicity | string | Multiplicity -"ZeroOne": 0 or 1 -"One": 1 -"ZeroToMany": Multiple -"OneToMany" : One or more |
Return value
- void
Exception
Name | Exception Class | Description |
---|---|---|
Type not found | ExtensionTypeNotFoundException | If the class or enumeration specified in the property type name cannot be found |
Profile edit not possible | ExtensionEditProfileException | If profile edit operation fails |