IMetamodels.AddPathConstraint(string,IPackage,string,string,string) Method
Namespace: NextDesign.Core
Description
Adds a path constraint to the specified field of the specified class. 
The specified class is searched under the package specified in the scope. 
Note that the existence of a path that matches 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 | 
| scope | IPackage | Scope (Package that is the base of the search range) | 
| className | string | Class name that is the scope of the constraint | 
| targetFieldName | string | Target field name 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 |