IMetamodels.AddPathConstraint(string,string,string,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 |
className | string | Class name for which the constraint is valid |
targetFieldName | string | target field name for constraint |
paths | string | Path string When specifying multiple paths, separate them with ';' (semicolons). |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null/empty character/unusable character is specified for constraint name |
Class not found | ExtensionTypeNotFoundException | If a class with the specified name was not found |
Field not found | ExtensionFieldNotFoundException | If a field with the specified name was not found |
Profile cannot be edited | ExtensionEditProfileException | If the profile edit operation fails |