<?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: Get ObjectId of added feature from ESRI.ArcGIS.Client.Tasks.EndEditEventArgs in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58933#M1502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeniffer, this work. My problem was that I subscribed to EventArgs, instead of EndEditEventArgs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;günther&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 21:46:57 GMT</pubDate>
    <dc:creator>GüntherGrill</dc:creator>
    <dc:date>2011-09-07T21:46:57Z</dc:date>
    <item>
      <title>Get ObjectId of added feature from ESRI.ArcGIS.Client.Tasks.EndEditEventArgs</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58931#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After adding a graphic to a standalone table, I would like to know the Object Id of the previously added row. The ESRI.ArcGIS.Client.Tasks.EndEditEventArgs provides this information (see attached screenshot). How can I access this info from code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping for something like : &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;e.Results.AddResults.item[0].ObjectId&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for helping out,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Günther&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 21:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58931#M1500</guid>
      <dc:creator>GüntherGrill</dc:creator>
      <dc:date>2011-09-07T21:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get ObjectId of added feature from ESRI.ArcGIS.Client.Tasks.EndEditEventArgs</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58932#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure you can get the ID by index or by iterating through the results&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void FeatureLayer_EndSaveEdits(object sender, ESRI.ArcGIS.Client.Tasks.EndEditEventArgs e)
{
 if(e.Results.AddResults != null)
 {
&amp;nbsp; foreach (var result in e.Results.AddResults)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var oid = result.ObjectID;
&amp;nbsp; }
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58932#M1501</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-10T22:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get ObjectId of added feature from ESRI.ArcGIS.Client.Tasks.EndEditEventArgs</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58933#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeniffer, this work. My problem was that I subscribed to EventArgs, instead of EndEditEventArgs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;günther&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 21:46:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/get-objectid-of-added-feature-from-esri-arcgis/m-p/58933#M1502</guid>
      <dc:creator>GüntherGrill</dc:creator>
      <dc:date>2011-09-07T21:46:57Z</dc:date>
    </item>
  </channel>
</rss>

