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


ITopologyRuleContainer.RuleByGUID 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.RuleByGUID Property
ArcGIS Developer Help

ITopologyRuleContainer.RuleByGUID Property

The rule with the globally unique ID.

[Visual Basic .NET]
Public Function get_RuleByGUID ( _
    ByVal GUID As String _
) As IRule
[C#]
public IRule get_RuleByGUID (
    string GUID
);
[C++]
HRESULT get_RuleByGUID(
  BSTR GUID,
  IRule** Rule
);
[C++]
Parameters
GUID [in]

GUID is a parameter of type BSTR Rule [out, retval]
Rule is a parameter of type IRule**

Product Availability

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

Errors Returned

If a nonexistant or incorrect GUID is supplied, RuleByGUID will return an error

Remarks

Returns the rule identified by the specified GUID.  The GUID is generated after the topology is added to the topology using ITopologyRuleContainer::AddRule.  The GUID can be returned from the ITopologyRule::GUID property.

See Also

ITopologyRuleContainer Interface