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

In This Topic
    GetRelationshipsForDestinationRows Method
    In This Topic
    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
    Public Function GetRelationshipsForDestinationRows( _
       ByVal destinationObjectIDs As IEnumerable(Of Long) _
    ) As IReadOnlyList(Of AttributedRelationship)

    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