ArcObjects Library Reference (GeoDatabase)  

ITopologyRule Interface

Provides access to memebers that return information about topology rules.

Product Availability

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

When To Use

The ITopologyRule is the main interface for creating and getting information about a topology rule. Use this interface to create a new topology rule between feature classes or for a single feature class.  Topology rules can also be specified to the subtype level.

Members

Description
Read/write property AllDestinationSubtypes Indicates if all destination subtypes are specified for the topology rule.
Read/write property AllOriginSubtypes Indicates if all origin subtypes are specified for the topology rule.
Read/write property DestinationClassID Destination ClassID of the topology rule.
Read/write property DestinationSubtype Destination subtype of the topology rule.
Read-only property DestinationSubtypeSpecified Indicates if a destination subtype has been specified.
Method ErrorShapeTypes Indicates the shape types of errors for the topology rule.
Read-only property GUID GUID of the topology rule.
Read/write property Name Name of the topology rule.
Read/write property OriginClassID Origin ClassID of the topology rule.
Read/write property OriginSubtype Origin subtype of the topology rule.
Read-only property OriginSubtypeSpecified Indicates if an origin subtype has been specified.
Read/write property TopologyRuleType Topology rule type of the topology rule.
Read/write property TriggerErrorEvents Indicates if error events are triggered for the topology rule.

CoClasses that implement ITopologyRule

CoClasses and Classes Description
TopologyRule Esri Topology Rule object.

Remarks

The ITopologyRule interface provides access to members which can be used to assign or retrieve information about a topology rule.  Topology rules are cocreateable.

To be added to a topology, a rule must have (at a minimum) its Type and OriginClassID properties defined. Rules which use a destination feature class must also have the DestinationClassID property set.

When specifying the Origin properties, if the OriginSubtype, OriginSubtypeSpecified and AllOriginSubtypes are not specified, the OriginSubtype is set to the default subtype.  If no subtypes are defined on the feature class, the OriginSubtype will equal zero.  The same is true for the DestinationSubtype, DestinationSubtypeSpecified and AllDestinationSubtypes properties.

See Also

ITopologyRuleContainer Interface