ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data Namespace / Geodatabase Class / OpenRelationshipClasses Method / OpenRelationshipClasses(Table,Table) Method
The origin table/feature class in the relationship.
The destination table/feature class in the relationship.

In This Topic
    OpenRelationshipClasses(Table,Table) Method
    In This Topic
    Gets a IReadOnlyList of specific RelationshipClass or AttributedRelationshipClass instances associated with the originTable and the destinationTable where originTable is the origin table/feature class and destinationTable is the destination table/feature class. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Function OpenRelationshipClasses( _
       ByVal originTable As Table, _
       ByVal destinationTable As Table _
    ) As IReadOnlyList(Of RelationshipClass)

    Parameters

    originTable
    The origin table/feature class in the relationship.
    destinationTable
    The destination table/feature class in the relationship.

    Return Value

    Exceptions
    ExceptionDescription
    No valid geodatabase has been opened prior to calling this operation.
    originTable or destinationTable is null.
    A geodatabase-related exception has occurred.
    Remarks
    This routine works with regular RelationshipClasses as well as AttributedRelationshipClasses.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also