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 );
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
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.
IFeatureClass Interface | IQueryFilter Interface