ArcObjects Library Reference  (GeoDatabase)    

IValidation.AddRule Method

Adds the rule to the set of associated rules.

[Visual Basic 6.0]
Sub AddRule(
    ByVal Rule As IRule _
)
[Visual Basic .NET]
Public Sub AddRule ( _
    ByVal Rule As IRule _
)
[C#]
public void AddRule (
    IRule Rule
);
[Java]
public void addRule (
    IRule Rule
)
throws
    IOException,
    AutomationException
[C++]
HRESULT AddRule(
  IRule* Rule
);
[C++]

Parameters

Rule [in]

  Rule is a parameter of type IRule

Product Availability

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

Description

This method is deprecated. Use a rule-specific method to add rules (i.e. IClassSchemaEdit.AlterDomain for attribute rules, IGeometricNetwork.AddRule for connectivity rules, IRelationshipClass.AddRelationshipRule for relationship rules).

See Also

IValidation Interface