<?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 Can't disconnect folder (IGxCatalog) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/can-t-disconnect-folder-igxcatalog/m-p/25801#M692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be quite simple, but how can I remove folder connections from IGxCatalog?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ESRI.ArcGIS.Catalog.IGxCatalog catalog = new ESRI.ArcGIS.Catalog.GxCatalogClass(); catalog.Location = "M:\\"; catalog.DisconnectFolder("M:\\");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but the connection to M:\ remains after running the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2012 09:20:31 GMT</pubDate>
    <dc:creator>AndrewEgleton</dc:creator>
    <dc:date>2012-02-03T09:20:31Z</dc:date>
    <item>
      <title>Can't disconnect folder (IGxCatalog)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/can-t-disconnect-folder-igxcatalog/m-p/25801#M692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be quite simple, but how can I remove folder connections from IGxCatalog?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ESRI.ArcGIS.Catalog.IGxCatalog catalog = new ESRI.ArcGIS.Catalog.GxCatalogClass(); catalog.Location = "M:\\"; catalog.DisconnectFolder("M:\\");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but the connection to M:\ remains after running the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 09:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/can-t-disconnect-folder-igxcatalog/m-p/25801#M692</guid>
      <dc:creator>AndrewEgleton</dc:creator>
      <dc:date>2012-02-03T09:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't disconnect folder (IGxCatalog)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/can-t-disconnect-folder-igxcatalog/m-p/25802#M693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found an answer: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/35682-Create-Connection-Folder-in-ArcCatalog-through-ArcMap-VB.NET?p=152447&amp;amp;viewfull=1#post152447" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/35682-Create-Connection-Folder-in-ArcCatalog-through-ArcMap-VB.NET?p=152447&amp;amp;viewfull=1#post152447&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;dded 2 lines of code after removing folder connections:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&lt;P align="left"&gt;ESRI.ArcGIS.Catalog.IGxCatalog catalog = new ESRI.ArcGIS.Catalog.GxCatalogClass(); catalog.Location = "M:\\";&amp;nbsp; &lt;/P&gt;catalog.DisconnectFolder("M:\\"); ESRI.ArcGIS.Catalog.IGxFile gxFile = (ESRI.ArcGIS.Catalog.IGxFile)catalog; gxFile.Save();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Folder connections now are removed permanently.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 12:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/can-t-disconnect-folder-igxcatalog/m-p/25802#M693</guid>
      <dc:creator>AndrewEgleton</dc:creator>
      <dc:date>2012-02-03T12:46:03Z</dc:date>
    </item>
  </channel>
</rss>

