This document is archived and information here might be outdated.  Recommended version.


IRelationshipClass.Cardinality Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.Cardinality Property
ArcGIS Developer Help

IRelationshipClass.Cardinality Property

The cardinality for the relationship class.

[Visual Basic .NET]
Public ReadOnly Property Cardinality As esriRelCardinality
[C#]
public esriRelCardinality Cardinality {get;}
[C++]
HRESULT get_Cardinality(
  esriRelCardinality* Cardinality
);
[C++]
Parameters
Cardinality [out, retval]

Cardinality is a parameter of type esriRelCardinality*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Cardinality property returns the cardinality of the relationship class as an esriRelCardinality enumeration value.  It refers to the type of relationship formed between an origin class and a destination class.  It can be one of three types: esriRelCardinalityOneToOne (1-1), esriRelCardinalityOneToMany (1-M), or esriRelCardinalityManyToMany (M-N).

See Also

IRelationshipClass Interface