This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IValidation Interface > IValidation.Validate Method (ArcObjects .NET 10.4 SDK) |
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
Validate on a row occurs in five steps:
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.