ArcObjects Library Reference (GeoDatabase)  

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,
  ISelectionSet** invalidSet
);
[C++]

Parameters

Selection [in]

  Selection is a parameter of type ISelectionSet

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