IValidation2 Interface

Provides access to members that manage rules and validate them.

Description

The IValidation2 interface is used when triggering the validation process on an ObjectClass.

Members

Name Description
Method AddRule Adds the rule to the set of associated rules.
Method AlterRule Alter the existing validation rule.
Method DeleteRule Deletes the rule from the set of associated rules.
Read-only property Rules The rules associated with the class.
Read-only property RulesByField The rules associated with the attribute.
Read-only property RulesBySubtypeCode The rules associated with the subtype.
Method Validate Validates the selection.
Method ValidateSelection Validates the selection.
Method ValidateSet Validates the set.

IValidation2.AlterRule Method

Alter the existing validation rule.

Public Sub AlterRule ( _
    ByVal Rule As IRule _
)
public void AlterRule (
    IRule Rule
);

Remarks

The AlterRule method is used to change the characteristics of an existing rule. This is currently implemented to change a subset of properties for connectivity rules only. These properties are:

  • minimum and maximum cardinalities
  • default junction for junction connectivity rules
  • default junction classID for edge connectivity rules
  • default junction subtype code for edge connectivity rules

To alter other properties of a connectivity rule, the rule must be deleted and recreated with the appropriate changes.

Inherited Interfaces

Interfaces Description
IValidation Provides access to members that manage rules and validate them.

Classes that implement IValidation2

Classes Description
FeatureClass Esri Feature Class object.
ObjectClass Esri Object Class object.
ObjectClassValidator Esri ObjectClassValidator object.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close