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

IRelationshipClass.DeleteRelationshipRule Method (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.DeleteRelationshipRule Method
ArcGIS Developer Help

IRelationshipClass.DeleteRelationshipRule Method

Deletes a relationship rule from this relationship class.

[Visual Basic .NET]
Public Sub DeleteRelationshipRule ( _
    ByVal Rule As IRule _
public void DeleteRelationshipRule (
    IRule Rule
HRESULT DeleteRelationshipRule(
  IRule* Rule
Rule [in]

Rule is a parameter of type IRule*

Product Availability

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


The DeleteRelationshipRule method deletes a relationship rule from the relationship class.  Relationship classes can have an associated set of relationship rules. These rules are used to control which object subtypes from the origin class can be related to which object subtypes in the destination class. They can also be used to specify a valid cardinality range for all permissable subtype pairs. For example, in a feature class containing utility poles divided into wooden and steel subtypes, relationship rules could be used to specify that wooden poles may have one to three transformers attached, but steel poles may have one to five transformers attached.

See Also

IRelationshipClass Interface