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


IRelationshipClass.DeleteRelationshipRule Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass.DeleteRelationshipRule Method

Deletes a relationship rule from this relationship class.

[Visual Basic .NET]
Public Sub DeleteRelationshipRule ( _
    ByVal Rule As IRule _
)
[C#]
public void DeleteRelationshipRule (
    IRule Rule
);
[C++]
HRESULT DeleteRelationshipRule(
  IRule* Rule
);
[C++]

Parameters Rule [in]
Rule is a parameter of type IRule

Product Availability

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

Remarks

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