IdentifyTask does not seem to honor IdentifyParameters .layerDefinitions

Discussion created by jmielke on Apr 14, 2011
Latest reply on Apr 19, 2011 by jmielke
I am trying to limit the results returned by the IdentifyTask by setting the IdentifyParameters.layerDefinitions.  However it seems to ignore this and rather continues to return all found features from the ArcGISDynamicMapService.  For instance if set...
identifyParams.layerDefinitions[0] = "prod_gas = 'Yes'";

and then execute the IdentifyTask.  The petroleum field polygon features where prod_gas = 'No' are still returned in the results set.

Here's a link to an esri sample server (v10) rest services directory that demonstrates this...

Am I not setting the .layerDefinitions correctly or is this a bug?

thanks, jason