<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Query Multiple Layers - How to tell which ExecuteCompleted is for which layer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359945#M9187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to associate the results of a query to a layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 18:51:18 GMT</pubDate>
    <dc:creator>DavidLowther</dc:creator>
    <dc:date>2010-05-26T18:51:18Z</dc:date>
    <item>
      <title>Query Multiple Layers - How to tell which ExecuteCompleted is for which layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359945#M9187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to associate the results of a query to a layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 18:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359945#M9187</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-05-26T18:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multiple Layers - How to tell which ExecuteCompleted is for which layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359946#M9188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the userstate parameter in the ExecuteAsync to pass in an object that identifies the layer, for instance the layer instance, Layer ID or index (...or all of them in an array or custom class/struct etc). This is what the e.UserState value will contain when the request returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is very similar to how for instance the methods in System.Net.WebClient works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 20:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359946#M9188</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-26T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multiple Layers - How to tell which ExecuteCompleted is for which layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359947#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply Morten. Don't know why I didn't think to look there. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 21:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-multiple-layers-how-to-tell-which/m-p/359947#M9189</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-05-26T21:49:44Z</dc:date>
    </item>
  </channel>
</rss>

