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 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 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 QueryResultFormat
is esriQueryResultKMLAsURL) or as a MIME object (when QueryResultFormat
is esriQueryResultKMLAsMime). The file or Mime is returned in compressed
KMZ format.
When esriQueryResultRecordSetAsObject is selected as QueryResultFormat,
the function returns RecordSet
Remarks
Joins established in
the source map (one-to-one and many-to-one) are supported using this method.
Relates are not supported (one-to-many and many-to-many).
Examples