<?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 Re: What is the pattern for accessing attributes in the .SDK via QueryFeaturesAsync? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112491#M1282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that works. You can also use the shorthand feat.Attributes["OBJECTID"]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2019 17:32:16 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2019-09-13T17:32:16Z</dc:date>
    <item>
      <title>What is the pattern for accessing attributes in the .SDK via QueryFeaturesAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112489#M1280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the QueryFeaturesAsync method on the FeatureTable actually return attribute values?&amp;nbsp; I am just seeing it return all the information about the layer and the fields, but not the actual attribute values that I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been unable to find it in the online docs either.&amp;nbsp; I am simply needing to get the attributes from features in layers that intersect a point.&amp;nbsp; I've done this a bunch in the other api's but am new to the sdk patterns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my layers are offline in a MobileMapPackage and I am obtaining them from the Map since they are not all visible in the MapView.&amp;nbsp; An Identify does not work since it only returns the visible features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 15:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112489#M1280</guid>
      <dc:creator>RichardHughes2</dc:creator>
      <dc:date>2019-09-13T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the pattern for accessing attributes in the .SDK via QueryFeaturesAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112490#M1281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to follow up on this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;FeatureQueryResult result &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; queryResults&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Feature feat &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; att &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feat&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetAttributeValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OBJECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;att&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just iterating through the FeatureQueryResult gives me access to the Feature which has methods to access the attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112490#M1281</guid>
      <dc:creator>RichardHughes2</dc:creator>
      <dc:date>2021-12-11T06:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the pattern for accessing attributes in the .SDK via QueryFeaturesAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112491#M1282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that works. You can also use the shorthand feat.Attributes["OBJECTID"]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 17:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/what-is-the-pattern-for-accessing-attributes-in/m-p/112491#M1282</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-09-13T17:32:16Z</dc:date>
    </item>
  </channel>
</rss>

