IMetamodels.AddPathConstraint(string, string, string, 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 |
className | string | Class name that is within the scope of the constraint |
targetFieldName | string | Constraint target field name |
paths | string | path string When specifying multiple paths, separate them with';' (semicolon). |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null/empty string/unusable character is specified in the constraint name |
Class not found | ExtensionTypeNotFoundException | If the class with the specified name is not found |
Field not found | ExtensionFieldNotFoundException | If the field with the specified name is not found |
Profile edit not possible | ExtensionEditProfileException | If profile edit operation fails |