<?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: IRouteEventSource and RouteEventSource in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677900#M18134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should see the RouteEventSourceClass rather than the RouteEventSource in VS Object Browser.&amp;nbsp; Thread is to be closed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 14:40:26 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2013-09-26T14:40:26Z</dc:date>
    <item>
      <title>IRouteEventSource and RouteEventSource</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677898#M18132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From this ArcObjects diagram at: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//003100000138000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//003100000138000000&lt;/A&gt;&lt;SPAN&gt;, it can be seen that the RouteEventSource class has 2 interfaces, and one of the interfaces is the&amp;nbsp; IRouteEventSource.&amp;nbsp; However, in VS 2010 Object Browser, I can see that the IRouteEventSource contains dozens of methods and properties, but none of the methods and properties of the IRouteEventSource is displayed in the RouteEventSource class.&amp;nbsp; Can someone explain this?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, I want to create a RouteEventSource object, how can it implement the IRouteEventSource?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 14:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677898#M18132</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-09-25T14:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: IRouteEventSource and RouteEventSource</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677899#M18133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to make a correction here - In VS 2010 Object Browser, it shows that Both the IRouteEventSource and RouteEventSource are interfaces.&amp;nbsp; However, in ESRI's Exploring ArcObjects (Vol. 1, p967), it states that RouteEventSource is s sub-class of a feature class, which means it can be used anywhere a feature class can be.&amp;nbsp; I have created another thread to mention this issue (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/93431-Subclass-RouteEventSource?p=331925#post331925"&gt;http://forums.arcgis.com/threads/93431-Subclass-RouteEventSource?p=331925#post331925&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The&amp;nbsp; RouteEventSource has 2 interfaces, one of which is the IRouteEventSource.&amp;nbsp;&amp;nbsp; The IRouteEventSource has the Property: RouteLocator.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the RouteLocator property, I tried this piece of code below, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Location.RouteEventSource rteEventSource;&amp;nbsp;&amp;nbsp; // RouteEventSource - an interface, contains IDataset only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rteEventSource = (ESRI.ArcGIS.Location.RouteEventSource)fClass;&amp;nbsp; // fClass is a FeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Location.IRouteEventSource rteEventSource2 = (ESRI.ArcGIS.Location.IRouteEventSource)rteEventSource;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but got error on the last line of the code with InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'ESRI.ArcGIS.Location.IRouteEventSource'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{641755F0-B7DE-11D3-9F7C-00C04F6BDF06}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 18:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677899#M18133</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-09-25T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: IRouteEventSource and RouteEventSource</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677900#M18134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should see the RouteEventSourceClass rather than the RouteEventSource in VS Object Browser.&amp;nbsp; Thread is to be closed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 14:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irouteeventsource-and-routeeventsource/m-p/677900#M18134</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2013-09-26T14:40:26Z</dc:date>
    </item>
  </channel>
</rss>

