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 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. |
multiplicity | string | multiplicity - "ZeroOne" : 0 or 1 - "One" : 1 - "ZeroToMany" : 0 or more multiple - "OneToMany" : 1 or more |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Type not found | ExtensionTypeNotFoundException | If the class or enum type specified in the property type name is not found |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |