ArcObjects Library Reference (GeoDatabase)  

ITopologyRuleContainer.RulesByClass Property

An enumeration of all the rules for a given class.

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

Parameters

ClassID [in]   ClassID 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 RulesByClass property returns an enumerator of the rules associated with a particular class in the topology, given the feature class Object Class ID.  If Object Class ID corresponding to a feature class that is not in the Topology is supplied, an empty enumerator is returned.

See Also

ITopologyRuleContainer Interface