Yes, there is. Use the IValidation.ValidateSet() method instead. It validates an entire Set object, built from an ISet interface where you can add individual objects to the set. This example shows building a set using selected features in an Edit session:
Dim pMySet As esriSystem.ISet
Set pMySet = New esriSystem.Set
Dim pEnumFeature As IEnumFeature
Set pEnumFeature = pEditor.EditSelection
For Count = 0 To pEditor.SelectionCount - 1
Set pFeature = pEnumFeature.Next
The IValidation.ValidateSet() method returns an ISet object containing all of the invalid features that it found in that set.
Hope this helps!
Thanks Todd, bui probably I have not explained.
I need a tool that, FOR EACH FEATURE, show ALL validation errors.
For example, if a signe feature has both a domain error and a network rule error, I'd like to view both the errors.
Is it possible?
From what I've researched, it's not possible. You have to fix one error before you can list the next. Here is the quote from ESRI's online help:
Validation is a short-circuiting process, meaning that the validate process stops if one of the checks fails. For example, if a feature is found to violate a connectivity rule, the validation of the feature stops, and any relationship rules will not be checked until the connectivity rule violation is corrected and the feature is validated again.