ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / AttributedRelationshipClass Class / GetRelationshipsForOriginRows Method
The object IDs from the origin table's rows.

In This Topic
    GetRelationshipsForOriginRows Method
    In This Topic
    Gets a list of all the AttributedRelationship that the origin rows with the specified originObjectIDs participate in. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    originObjectIDs
    The object IDs from the origin table's rows.

    Return Value

    A list of the AttributedRelationships. If originObjectIDs 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
    originObjectIDs is null.
    A geodatabase-related exception has occurred.
    Remarks
    A common pattern is to generate the list of ObjectIDs from a Selection.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also