API Reference > ecschema-Metadata > Metadata > RelationshipConstraint > addClass addClass Method Adds the provided class as a constraint class to this constraint. addClass(constraint: EntityClass | Mixin | RelationshipClass): void Parameter Type Description constraint EntityClass | Mixin | RelationshipClass The class to add as a constraint class. Returns - void Defined in core/ecschema-metadata/src/Metadata/RelationshipClass.ts Line 190 Last Updated: 12 June, 2024