Query dynamic layer from DynamicLayerinfoCollection

Discussion created by jhansi131 on Nov 1, 2012

I've developed an application that adds a user selected shapefile to the map. I add this to the DynamicLayerInfoColelction which overlays on the map perfectly. But I would like to query this layer now.

What is the best way to do this?

I've tried creating a feaurelayer from this dynamic layer but I couldn't find the correct url path.

The reference library suggests -

ESRI.ArcGIS.Client Namespace > FeatureLayer Class : Source Property

Gets or sets the layer source if querying a dynamic layer.

Note that when using the dynamic layer, the URL for the query must reference the dynamic layer source. Example:

Before I can get to this I couldn't create the featurelayer successfully. Is the dynamic layer suggested above doesn't refer to on-the-fly layer?

Thanks for your time!