This document is archived and information here might be outdated.  Recommended version.


IValidation.ValidateSelection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IValidation Interface > IValidation.ValidateSelection Method
ArcGIS Developer Help

IValidation.ValidateSelection Method

Validates the selection.

[Visual Basic .NET]
Public Function ValidateSelection ( _
    ByVal Selection As ISelectionSet, _
    ByVal Workspace As IWorkspace _
) As ISelectionSet
[C#]
public ISelectionSet ValidateSelection (
    ISelectionSet Selection,
    IWorkspace Workspace
);
[C++]
HRESULT ValidateSelection(
  ISelectionSet* Selection,
  IWorkspace* Workspace
);
[C++]
Parameters
Selection [in]

Selection is a parameter of type ISelectionSet* Workspace [in]
Workspace is a parameter of type IWorkspace*

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 selection set must be passed to the first parameter, indicating that a subset of the class' objects should be evaluated. Unlike the query filter parameter of the Validate method, this parameter requires a valid selection set, and passing a null value will cause the method to fail.
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.

See Also

IValidation Interface