ArcGIS Pro 3.3 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.

In This Topic
    AddRelationshipClass(FeatureDatasetDescription,AttributedRelationshipClassDescription) Method
    In This Topic
    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