<?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 How to check  layer name in VB.Net or C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-check-layer-name-in-vb-net-or-c/m-p/763634#M20212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a toolbox for ArcMap and I would like to find a way to search for a layer even if the user changes its name in the table of contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r Instead of checking the layer name using layer.Name = "Parcels"&amp;nbsp; I would like to check the feature class name in Vb.net or C#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 16:58:14 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2014-10-29T16:58:14Z</dc:date>
    <item>
      <title>How to check  layer name in VB.Net or C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-check-layer-name-in-vb-net-or-c/m-p/763634#M20212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a toolbox for ArcMap and I would like to find a way to search for a layer even if the user changes its name in the table of contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r Instead of checking the layer name using layer.Name = "Parcels"&amp;nbsp; I would like to check the feature class name in Vb.net or C#.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 16:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-check-layer-name-in-vb-net-or-c/m-p/763634#M20212</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2014-10-29T16:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to check  layer name in VB.Net or C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-check-layer-name-in-vb-net-or-c/m-p/763635#M20213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use similar code:&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146028053817832" jivemacro_uid="_14146028053817832"&gt;
&lt;P&gt;&amp;nbsp; ESRI.ArcGIS.Carto.IFeatureLayer featureLayer = (ESRI.ArcGIS.Carto.IFeatureLayer) yourlayer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Geodatabase.IFeatureClass featureClass = featureLayer.FeatureClass;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and then cast IDataset and get your info &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000147000000" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000147000000"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-check-layer-name-in-vb-net-or-c/m-p/763635#M20213</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2014-10-29T17:15:37Z</dc:date>
    </item>
  </channel>
</rss>

