ArcObjects Library Reference (GeoDatabase)  

IValidation.Validate Method

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:

  1. Validate the subtype

  2. Validate the attribute rules

  3. Validate the network connectivity rules (if network feature)

  4. Validate the relationship rules

  5. 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.

See Also

IValidation Interface