Map Service QueryFeatureCount2 method

Queries and returns the count of the features that meet the query filter selection criteria for the specified layer description.

 

QueryFeatureCount2(string MapName, LayerDescription LayerDescription, QueryFilter QueryFilter)

 

Parameter

Description

MapName

The name of the map (data frame) that contains the layer associated with the LayerDescription parameter.

LayerDescription

The LayerDescription object of the layer to query.

QueryFilter

An attribute or spatial query that defines the selection criteria for the layer associated with the LayerDescription parameter.

 

Return Value

 

An integer value indicating the number of features that meet the selection criteria. A SOAP exception will be thrown when the SQL expression in the query filter is invalid.

 

Remarks

 

Definitions applied to the LayerDescription input parameter will filter the returned feature count.

 

Examples

 

C#

VB.NET

Java