<?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 AddressParameters.OutFields cannot be defined? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305753#M7879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When performing a Geocode Task, I'd like to be able to specify output fields from the source data.&amp;nbsp; There is a property of .OutFields for AddressParameters however it is ReadOnly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see any way to define which fields you want to return from a Geocoding task.&amp;nbsp; Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Description is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The list of fields to include in a returned result set. If you specify the shape field in the list of return fields, it is ignored. For non-intersection addresses you can specify the candidate fields as defined in the geocode service. For intersection addresses you can specify the intersection candidate fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked the same class in the Flex API and it appears that the outfields can be defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/tasks/supportClasses/AddressCandidate.html&amp;amp;com/esri/ags/tasks/supportClasses/class-list.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/tasks/supportClasses/AddressCandidate.html&amp;amp;com/esri/ags/tasks/supportClasses/class-list.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 19:36:24 GMT</pubDate>
    <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
    <dc:date>2011-07-13T19:36:24Z</dc:date>
    <item>
      <title>AddressParameters.OutFields cannot be defined?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305753#M7879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When performing a Geocode Task, I'd like to be able to specify output fields from the source data.&amp;nbsp; There is a property of .OutFields for AddressParameters however it is ReadOnly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see any way to define which fields you want to return from a Geocoding task.&amp;nbsp; Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Description is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The list of fields to include in a returned result set. If you specify the shape field in the list of return fields, it is ignored. For non-intersection addresses you can specify the candidate fields as defined in the geocode service. For intersection addresses you can specify the intersection candidate fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked the same class in the Flex API and it appears that the outfields can be defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/tasks/supportClasses/AddressCandidate.html&amp;amp;com/esri/ags/tasks/supportClasses/class-list.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/tasks/supportClasses/AddressCandidate.html&amp;amp;com/esri/ags/tasks/supportClasses/class-list.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 19:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305753#M7879</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-07-13T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: AddressParameters.OutFields cannot be defined?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305754#M7880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can update OutFields with the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AddressToLocationsParameters addressParams = new AddressToLocationsParameters()
{
 OutSpatialReference = MyMap.SpatialReference&amp;nbsp;&amp;nbsp;&amp;nbsp; 
};
addressParams.OutFields.Add("FromAdd"); //or "*" to show all
addressParams.OutFields.AddRange(new string[] { "State", "ZIP" });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read-only in this documentation means, you can change the instance, but you can update the collection. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.AddressToLocationsParameters~OutFields.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.AddressToLocationsParameters~OutFields.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305754#M7880</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: AddressParameters.OutFields cannot be defined?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305755#M7881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the clarification.&amp;nbsp; That worked like a charm!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 19:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/addressparameters-outfields-cannot-be-defined/m-p/305755#M7881</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-07-18T19:41:51Z</dc:date>
    </item>
  </channel>
</rss>

