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


ITopologyRuleContainer.RulesByClassAndSubtype Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITopologyRuleContainer Interface > ITopologyRuleContainer.RulesByClassAndSubtype Property
ArcGIS Developer Help

ITopologyRuleContainer.RulesByClassAndSubtype Property

An enumeration of all the rules for a given class and subtype.

[Visual Basic .NET]
Public Function get_RulesByClassAndSubtype ( _
    ByVal ClassID As Integer, _
    ByVal SubType As Integer _
) As IEnumRule
[C#]
public IEnumRule get_RulesByClassAndSubtype (
    int ClassID,
    int SubType
);
[C++]
HRESULT get_RulesByClassAndSubtype(
  long ClassID,
  long SubType,
  IEnumRule** Rules
);
[C++]
Parameters
ClassID [in]

ClassID is a parameter of type long SubType [in]
SubType is a parameter of type long Rules [out, retval]
Rules is a parameter of type IEnumRule**

Product Availability

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

Remarks

The RulesByClassAndSubtype property returns an enumerator of the rules associated with a particular class/subtype pair in the topology.  If the Object Class ID corresponds to a feature class that is not in the Topology or the Subtype value does not exist, an empty enumerator is returned.

See Also

ITopologyRuleContainer Interface