ArcObjects Library Reference (GeoDatabase)  

IAttributeRule Interface

Provides access to members that return, modify and validate attribute rules.

Product Availability

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

Description

IAttributeRule interface is used to maintain information about attribute rules. Validation of attribute rules is a function of this interface. Setting/retrieving the domain name, fieldname, subtypecode of a particular attribute rule are members of this interface.

When To Use

IAttributeRule is the interface on a AttributeRule object used to get and set the properties of an Attribute Rule. You can use the Validate function of the attribute rule object to validate a particular row against this attribute rule. The validate function returns a boolean value of TRUE if it is valid and FALSE if it was not.

Members

Description
Read/write property Category The name associated with the validation rule.
Read/write property DomainName The domain name associated with the attribute rule.
Read/write property FieldName The field name associated with the attribute rule.
Read/write property Helpstring The helpstring associated with the validation rule.
Read/write property SubtypeCode The subtype code.
Read-only property Type The type associated with the validation rule.
Method Validate Validates the rule.

Inherited Interfaces

Interfaces Description
IRule Provides access to members that return information about rules.

CoClasses that implement IAttributeRule

CoClasses and Classes Description
AttributeRule Esri attribute rule object.

Remarks

IAttributeRule is for setting rules based on attributes for object classes. They describe the legal values for a field in an object class. For example, you might set an attribute rule that specifies wood poles can only be within a certain height range. You do this by establishing a range domain for pole heights and then using an attribute rule to apply this domain to a particular field in the pole object class, probably the height field.

 

.NET Related Topics

Geodatabase