ArcObjects Library Reference  (GeoDatabase)    

IFeatureClass.Select Method

Returns a selection That contains the object ids selected by the specified query.

[Visual Basic 6.0]
Function Select(
    ByVal QueryFilter As IQueryFilter, _
    ByVal selType As esriSelectionType, _
    ByVal selOption As esriSelectionOption, _
    ByVal selectionContainer As IWorkspace _
) As ISelectionSet
[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
);
[Java]
public IselectionSet select (
    IQueryFilter QueryFilter,
    esriselectionType selType,
    esriselectionOption selOption,
    IWorkspace selectionContainer
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Select(
  IQueryFilter* QueryFilter,
  esriSelectionType selType,
  esriSelectionOption selOption,
  IWorkspace* selectionContainer,
  ISelectionSet** ppSelectionSet
);
[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

ppSelectionSet [out, retval]

  ppSelectionSet is a parameter of type ISelectionSet

Product Availability

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

Remarks

Select will return an ISelectionSet with all of the features that satisfy some attribute and/or spatial query as specified by an IQueryFilter object. If Nothing is given as the IQueryFilter, then the selection will have all of the features from the feature class.

Calling the Select method in IFeatureClass has the same effect as calling the corresponding method in ITable.

When calling Select the selectionContainer parameter is no longer required. Null (C#, VB.Net) or Nothing (VB6) should be supplied in its place.

See Also

IFeatureClass Interface | IQueryFilter Interface

Example

IFeatureClass Select Example

 


Feedback Send feedback on this page