My application allows a user to make multiple layers "active." Drawing a rectangle on the map selects features from all active layers within the rectangle. I've got this happening based on the good examples online.
However, one issue I have run into is that the QueryEventArgs class does not let me know what layer the results came from - nor do I have any way (that I can tell) to know which UserState is associated with which completed QueryTask. I thought maybe the QueryTask.Token ended up being the QueryEventArgs.UserState, but alas, no such luck.
Any ideas on how to associate the results of a query to a layer?
Thanks in advance for your help.