Validates the selection.
[Visual Basic .NET] Public Function Validate ( _ ByVal Selection As IQueryFilter, _ ByVal Workspace As IWorkspace _ ) As ISelectionSet
[C#] public ISelectionSet Validate ( IQueryFilter Selection, IWorkspace Workspace );
[C++]
HRESULT Validate(
IQueryFilter* Selection,
IWorkspace* Workspace,
ISelectionSet** invalidSet
);
[C++]Parameters
Selection [in]Selection is a parameter of type IQueryFilter
Workspace [in]Workspace is a parameter of type IWorkspace
invalidSet [out, retval]invalidSet is a parameter of type ISelectionSet
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
This method creates a selection set that contains the
underlying class' invalid objects.
A query filter can be provided to validate a portion of the
class' objects, but passing a null value will evaluate all of the
class' objects.
The Workspace parameter indicates where the selection
set is to be created. In most cases, a null value can be used,
indicating that the class' workspace be used. If necessary, a
scratch workspace may also be used.
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.