ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / AddRelationshipClass Method / AddRelationshipClass(FeatureDatasetDescription,AttributedRelationshipClassDescription) Method
Indicates the ArcGIS.Core.Data.FeatureDataset where the ArcGIS.Core.Data.AttributedRelationshipClass will be added.
Indicates the ArcGIS.Core.Data.RelationshipClass to add.
Version

AddRelationshipClass(FeatureDatasetDescription,AttributedRelationshipClassDescription) Method
Enqueue the Add operation on the object referred to by the FeatureDatasetDescription and the RelationshipClassDescription.
Syntax
Exceptions
ExceptionDescription
The relationship split policy, relationship rules, and/or the origin foreign key fields are invalid.
attributedRelationshipClassDescription is null.
Memory ArcGIS.Core.Data.Geodatabase does not support attributed relationship classes.
The relationship split policy is not supported.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also