This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServer4 Interface > IMapServer4.QueryFeatureCount Method (ArcObjects .NET 10.5 SDK) |
Returns the count of the features that meet the query filter selection criteria for the specified layer.
[Visual Basic .NET] Public Function QueryFeatureCount ( _ ByVal MapName As String, _ ByVal LayerID As Integer, _ ByVal Filter As IQueryFilter _ ) As Integer
[C#] public int QueryFeatureCount ( string MapName, int LayerID, IQueryFilter Filter );
[C++]
HRESULT QueryFeatureCount(
BSTR MapName,
long LayerID,
IQueryFilter* Filter,
long* Count
);
[C++]
Parameters MapName [in] MapName is a parameter of type BSTR LayerID [in] LayerID is a parameter of type long Filter [in]
Filter is a parameter of type IQueryFilter Count [out, retval] Count is a parameter of type long