IMetamodels.AddPathConstraint(string,IClass,IField,string) method
Namespace: NextDesign.Core
Description
Adds a path constraint to the specified field of the specified class.
In addition, the existence of the path corresponding to the path string set here is not checked. This method will succeed even if you specify an incorrect path.
argument
Name | Type | Description |
---|---|---|
name | string | constraint name |
scope | IClass | Class that is the scope of the constraint |
targetField | IField | Constraint target field |
paths | string | Path string When specifying multiple paths, separate them with ';' (semicolons). |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When null/empty character/unusable character is specified in the constraint name When the effective scope of the constraint and the target field of the constraint are not specified |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |