Map Service QueryFeatureData2 method

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

 

QueryFeatureData2(string MapName, LayerDescription LayerDescription, QueryFilter QueryFilter, QueryResultOptions QueryResultOptions)
 

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.

QueryResultOptions

Use to define the output Format of a query result and a GeoTransformation to apply to the results.

 

Return Value

 

The QueryResultOptions.Format property, an esriQueryResultFormat constant, defines the result type. The result can be returned in two formats: KML and RecordSet.

 

When KML is the desired output, it is passed back as a URL when the Format property of the QueryResultOptions parameter is "esriQueryResultKMLAsURL" or as a MIME object when the Format property of the QueryResultOptions parameter is "esriQueryResultKMLAsMime". The file the URL points to or Mime is returned in compressed KMZ format.

 

When esriQueryResultRecordSetAsObject is selected as the Format in QueryResultOptions , the function returns RecordSet.

 

Examples

C#

VB.NET

Java