ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / Create Method / Create(FeatureDatasetDescription,RelationshipClassDescription) Method
Indicates the ArcGIS.Core.Data.FeatureDataset where the ArcGIS.Core.Data.RelationshipClass will be created.
Indicates the ArcGIS.Core.Data.RelationshipClass to be created.
Version

Create(FeatureDatasetDescription,RelationshipClassDescription) Method
Enqueue the create operation on the object referred to by the RelationshipClassDescription. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
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.
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also