ArcGIS Pro 2.6 API Reference Guide
GetCardinality Method

ArcGIS.Core.Data Namespace > RelationshipClassDefinition Class : GetCardinality Method
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 10, Windows 8.1, Windows 7

See Also

Reference

RelationshipClassDefinition Class
RelationshipClassDefinition Members