Skip to main content

IMetamodels.AddPathConstraint(string, IClass, IField, 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
scopeIClassClasses that are within the scope of the constraint
targetFieldIFieldConstraint target field
pathsstringpath string
When specifying multiple paths, separate them with';' (semicolon).

Return value

Exception

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen null/empty string/unusable character is specified in the constraint name
When the class that is the scope of the constraint and the target field of the constraint are not specified
Profile edit not possibleExtensionEditProfileExceptionIf profile edit operation fails