<?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 get the definition query of a layer in ArcMap from an AddIn tool's code? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-definition-query-of-a-layer-in/m-p/1285608#M20587</link>
    <description>&lt;P&gt;A little new to ArcObject's SDK... Is this the place to create the post?&lt;BR /&gt;Need to access the definition query of a layer that the user created in the ArcMap application (if the layer exists) from an addin tool's code. Need to access this definition query and apply it to a search/query.&lt;/P&gt;&lt;P&gt;Is there a sample code/example for this?&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 12:24:27 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2023-05-04T12:24:27Z</dc:date>
    <item>
      <title>How to get the definition query of a layer in ArcMap from an AddIn tool's code?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-definition-query-of-a-layer-in/m-p/1285608#M20587</link>
      <description>&lt;P&gt;A little new to ArcObject's SDK... Is this the place to create the post?&lt;BR /&gt;Need to access the definition query of a layer that the user created in the ArcMap application (if the layer exists) from an addin tool's code. Need to access this definition query and apply it to a search/query.&lt;/P&gt;&lt;P&gt;Is there a sample code/example for this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-definition-query-of-a-layer-in/m-p/1285608#M20587</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2023-05-04T12:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the definition query of a layer in ArcMap from an AddIn tool's code?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-definition-query-of-a-layer-in/m-p/1287711#M20588</link>
      <description>&lt;P&gt;You have to query inteface to IFeatureLayerDefinition2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IFeatureLayerDefinition2 ifld = (IFeatureLayerDefinition2)layer;
string defquery = ifld.DefinitionExpression;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brent Hoskisson&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-definition-query-of-a-layer-in/m-p/1287711#M20588</guid>
      <dc:creator>BrentHoskisson</dc:creator>
      <dc:date>2023-05-10T14:36:01Z</dc:date>
    </item>
  </channel>
</rss>

