OpenRelationshipClasses(String,String) Method
Gets a
IReadOnlyList of specific
RelationshipClass or
AttributedRelationshipClass instances associated with the and the where is the origin table/feature class and is the destination table/feature class. This method must be called on the MCT. Use QueuedTask.Run.
Opening RelationshipClass between two Tables
// Must be called within QueuedTask.Run().
// When used with file or enterprise geodatabases, this routine takes two table names.
// When used with feature services, this routine takes layer IDs, or the names of the tables as they are exposed through the service (e.g., "L0States")
public IReadOnlyList<RelationshipClass> OpenRelationshipClassFeatureServices(Geodatabase geodatabase, string originClass, string destinationClass)
{
return geodatabase.OpenRelationshipClasses(originClass, destinationClass);
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.