ArcObjects Library Reference (GeoDatabase)  

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