ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / RelationshipClassDefinition Class / GetCardinality Method

In This Topic
    GetCardinality Method
    In This Topic
    Gets the valid cardinality of the relationship. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public RelationshipCardinality GetCardinality()
    Public Function GetCardinality() As RelationshipCardinality

    Return Value

    The valid cardinality of the relationship.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Remarks

    The cardinality indicates the valid number of rows that can be related to a given origin row.

    The cardinality of the relationship class will not restrict the creation of invalid relationships but will allow Table.Validate to identify cases where the created relations do not adhere.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also