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


ISelectionSet.Select Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISelectionSet.Select Method

Returns a new selection That contains the object ids selected by a query over this selection set.

[Visual Basic .NET]
Public Function Select ( _
    ByVal QueryFilter As IQueryFilter, _
    ByVal selType As esriSelectionType, _
    ByVal selOption As esriSelectionOption, _
    ByVal selectionContainer As IWorkspace _
) As ISelectionSet
[C#]
public ISelectionSet Select (
    IQueryFilter QueryFilter,
    esriSelectionType selType,
    esriSelectionOption selOption,
    IWorkspace selectionContainer
);
[C++]
HRESULT Select(
  IQueryFilter* QueryFilter,
  esriSelectionType selType,
  esriSelectionOption selOption,
  IWorkspace* selectionContainer,
  ISelectionSet** SelectionSet
);
[C++]

Parameters QueryFilter [in]
QueryFilter is a parameter of type IQueryFilter selType [in]
selType is a parameter of type esriSelectionType selOption [in]
selOption is a parameter of type esriSelectionOption selectionContainer [in]
selectionContainer is a parameter of type IWorkspace SelectionSet [out, retval]
SelectionSet is a parameter of type ISelectionSet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Select will return a new selection set. This subset of the original selection set will contain all of the rows that satisfy the attribute and/or spatial constraints as specified by the IQueryFilter object. If a null value is passed as the QueryFilter parameter, the new selection set will contain all of the rows from the original selection set.

When calling Select, the selectionContainer parameter is no longer needed; a null value can be provided.

See Also

ISelectionSet Interface