Skip to main content

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

NameTypeDescription
namestringconstraint name
classNamestringClass name that is within the scope of the constraint
targetFieldNamestringConstraint target field name
pathsstringpath string
When specifying multiple paths, separate them with';' (semicolon).

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null/empty string/unusable character is specified in the constraint name
Class not foundExtensionTypeNotFoundExceptionIf the class with the specified name is not found
Field not foundExtensionFieldNotFoundExceptionIf the field with the specified name is not found
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails