Interface IValidation
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that manage rules and validate them.
[Guid("D410A9BA-475A-11D2-9932-0000F80372B4")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IValidation
Properties
Rules
The rules associated with the class.
IEnumRule Rules { get; }
Property Value
Remarks
Property Rules returns a IEnumRule enumerator hydrated with all of the rules associated with the object class.
RulesByField[string]
The rules associated with the attribute.
IEnumRule RulesByField[string FieldName] { get; }
Parameters
FieldNamestring
Property Value
RulesBySubtypeCode[int]
The rules associated with the subtype.
IEnumRule RulesBySubtypeCode[int SubtypeCode] { get; }
Parameters
SubtypeCodeint
Property Value
Methods
AddRule(IRule)
Adds the rule to the set of associated rules.
void AddRule(IRule Rule)
Parameters
RuleIRule
DeleteRule(IRule)
Deletes the rule from the set of associated rules.
void DeleteRule(IRule Rule)
Parameters
RuleIRule
Validate(IQueryFilter, IWorkspace)
Validates the selection.
ISelectionSet Validate(IQueryFilter Selection, IWorkspace Workspace)
Parameters
SelectionIQueryFilterWorkspaceIWorkspace
Returns
Remarks
Validate on a row occurs in five steps:
- Validate the subtype
- Validate the attribute rules
- Validate the network connectivity rules (if network feature)
- Validate the relationship rules
- Perform custom validation (using optional class extension)
The validate process stops once a row is found invalid. For example, if a network feature violates an attribute rule, the validation process stops and the feature's network connectivity rules are not evaluated until the attribute rule violation is corrected.
ValidateSelection(ISelectionSet, IWorkspace)
Validates the selection.
ISelectionSet ValidateSelection(ISelectionSet Selection, IWorkspace Workspace)
Parameters
SelectionISelectionSetWorkspaceIWorkspace
Returns
ValidateSet(ISet)
Validates the set.
ISet ValidateSet(ISet Selection)
Parameters
SelectionISet