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


IRelationshipClass.IsComposite Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass.IsComposite Property

Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.

[Visual Basic .NET]
Public ReadOnly Property IsComposite As Boolean
[C#]
public bool IsComposite {get;}
[C++]
HRESULT get_IsComposite(
  VARIANT_BOOL* IsComposite
);
[C++]

Parameters IsComposite [out, retval] IsComposite is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The IsComposite property indicates whether this relationship class is composite or simple. A composite relationship class is one where objects in the origin class control the lifetime of the objects in the destination class.  When the origin object is deleted, the related destination object is also deleted.   Composite relationship classes are always one to many relationships, but this can be constrained to one to one through the use of relationship rules.

If a relationship class is not composite, it is considered 'simple', and related objects are independent of each other. Simple relationships can be of any cardinality.

See Also

IRelationshipClass Interface