ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / AttributedRelationshipClass Class / GetRelationshipsForDestinationRows Method
The ObjectIDs from the destination table's rows.
Version

GetRelationshipsForDestinationRows Method
Gets a list of all the AttributedRelationship that the destination rows with the specified destinationObjectIDs participate in. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

destinationObjectIDs
The ObjectIDs from the destination table's rows.

Return Value

A list of the AttributedRelationships. If destinationObjectIDs is an empty list or none of its content (i.e., OIDs) matches any row in the relationship class, an empty list will be returned.
Exceptions
ExceptionDescription
destinationObjectIDs is null.
A geodatabase-related exception has occurred.
Remarks
A common pattern is to generate the list of object IDs from a Selection.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also