Skip to main content

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

NameTypeDescription
namestringconstraint name
classNamestringClass name for which the constraint is valid
targetFieldNamestringtarget field name for constraint
pathsstringPath string
When specifying multiple paths, separate them with ';' (semicolons).

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null/empty character/unusable character is specified for constraint name
Class not foundExtensionTypeNotFoundExceptionIf a class with the specified name was not found
Field not foundExtensionFieldNotFoundExceptionIf a field with the specified name was not found
Profile cannot be editedExtensionEditProfileExceptionIf the profile edit operation fails