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


IMapServer4.QueryFeatureCount2 Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServer4.QueryFeatureCount2 Method

Returns the count of the features that meet the query filter selection criteria for the specified layer.

[Visual Basic .NET]
Public Function QueryFeatureCount2 ( _
    ByVal MapName As String, _
    ByVal pLayerDescription As ILayerDescription, _
    ByVal Filter As IQueryFilter _
) As Integer
[C#]
public int QueryFeatureCount2 (
    string MapName,
    ILayerDescription pLayerDescription,
    IQueryFilter Filter
);
[C++]
HRESULT QueryFeatureCount2(
  BSTR MapName,
  ILayerDescription* pLayerDescription,
  IQueryFilter* Filter,
  long* Count
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR pLayerDescription [in]
pLayerDescription is a parameter of type ILayerDescription Filter [in]
Filter is a parameter of type IQueryFilter Count [out, retval] Count is a parameter of type long

Product Availability

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

See Also

IMapServer4 Interface