IMetamodels.AddPathConstraint(string, IClass, IField, string) method
Namespace: NextDesign.Core
Description
Adds a path constraint to the specified field in the specified class. The existence of the path corresponding to the path character string set here is not checked. If you specify the wrong path, this method will succeed.
argument
Name | Type | Description |
---|---|---|
name | string | constraint name |
scope | IClass | Classes that are within the scope of the constraint |
targetField | IField | Constraint target field |
paths | string | path string When specifying multiple paths, separate them with';' (semicolon). |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When null/empty string/unusable character is specified in the constraint name When the class that is the scope of the constraint and the target field of the constraint are not specified |
Profile edit not possible | ExtensionEditProfileException | If profile edit operation fails |