![]() |
This document is archived and information here might be outdated. Recommended version. |
Provides access to members that return, modify and validate attribute rules.
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.
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.
Name | Description | |
---|---|---|
![]() |
Category | The name associated with the validation rule. |
![]() |
DomainName | The domain name associated with the attribute rule. |
![]() |
FieldName | The field name associated with the attribute rule. |
![]() |
Helpstring | The helpstring associated with the validation rule. |
![]() |
ID | The ID of the validation rule. |
![]() |
SubtypeCode | The subtype code. |
![]() |
Type | The type associated with the validation rule. |
![]() |
Validate | Validates the rule. |
Interfaces | Description |
---|---|
IRule | Provides access to members that return information about rules. |
Classes | Description |
---|---|
AttributeRule | Esri attribute rule object. |
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.