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


IValidation.AddRule Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IValidation Interface > IValidation.AddRule Method
ArcGIS Developer Help

IValidation.AddRule Method

Adds the rule to the set of associated rules.

[Visual Basic .NET]
Public Sub AddRule ( _
    ByVal Rule As IRule _
)
[C#]
public void AddRule (
    IRule Rule
);
[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