This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.DeleteRelationshipRule Method (ArcObjects .NET 10.5 SDK) |
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
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.