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

In This Topic
    AddRelationshipClass(FeatureDatasetDescription,RelationshipClassDescription) Method
    In This Topic
    Enqueue the Add operation on the object referred to by the FeatureDatasetDescription and the RelationshipClassDescription.
    Syntax

    Parameters

    featureDatasetDescription
    Indicates the ArcGIS.Core.Data.FeatureDataset where the ArcGIS.Core.Data.RelationshipClass will be added.
    relationshipClassDescription
    Indicates the ArcGIS.Core.Data.RelationshipClass to add.
    Exceptions
    ExceptionDescription
    The relationship split policy and/or the relationship rules are invalid.
    featureDatasetDescription and/or relationshipClassDescription is null.
    Memory ArcGIS.Core.Data.Geodatabase does not support relationship classes.
    The relationship split policy is not supported.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also