Skip to main content

IMetamodels.AddPathConstraint(string,IClass,IField,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
scopeIClassClass that is the scope of the constraint
targetFieldIFieldConstraint target field
pathsstringPath string
When specifying multiple paths, separate them with ';' (semicolons).

Return value

Exceptions

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen null/empty character/unusable character is specified in the constraint name
When the effective scope of the constraint and the target field of the constraint are not specified
Profile cannot be editedExtensionEditProfileExceptionIf the profile edit operation fails