This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureClass Interface > IFeatureClass.FeatureCount Method (ArcObjects .NET 10.4 SDK) |
The number of features selected by the specified query.
[Visual Basic .NET] Public Function FeatureCount ( _ ByVal QueryFilter As IQueryFilter _ ) As Integer
[C#] public int FeatureCount ( IQueryFilter QueryFilter );
[C++]
HRESULT FeatureCount(
IQueryFilter* QueryFilter,
long* numFeatures
);
[C++]
Parameters QueryFilter [in]
QueryFilter is a parameter of type IQueryFilter numFeatures [out, retval] numFeatures is a parameter of type long
FeatureCount returns the number of features that satisfy some attribute and/or spatial query as specified by an IQueryFilter object. If Nothing is supplied for the IQueryFilter, then FeatureCount returns the total number of features in the feature class.
IFeatureClass Interface | IQueryFilter Interface