IMetamodels.AddPathConstraint(string,string,string,string) Method
Namespace: NextDesign.Core
Description
Adds a path constraint to the specified field of the specified class.
Note that the existence of a path corresponding to the path string set here is not checked. Even if an incorrect path is specified, this method will end normally.
Arguments
| Name | Type | Description |
|---|---|---|
| name | string | Constraint name |
| className | string | Class name that is the scope of the constraint |
| targetFieldName | string | Field name that is the target of the constraint |
| paths | string | Path string To specify multiple paths, separate them with ';' (semicolon). |
Return value
Exceptions
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If null/empty character/unusable character is specified for constraint name |
| Class not found | ExtensionTypeNotFoundException | If class with specified name is not found |
| Field not found | ExtensionFieldNotFoundException | If field with specified name is not found |
| Profile cannot be edited | ExtensionEditProfileException | If profile editing operation fails |