<?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: Preventing users from changing Definition Query in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90062#M2370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not aware of any ability to lock a layer internally to stop a user from editing the properties of a Layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 10:03:17 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2013-04-29T10:03:17Z</dc:date>
    <item>
      <title>Preventing users from changing Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90061#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using lyr files that include Definition Query to let the user add some part of existing layers to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is done mainly mosaic datasets that have some rasters that the user should not be able to see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that smart user can just open layer properties and clear the Definition Query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I prevent this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe class extension?, Change registry to drop this option from ArcMap? writing something in ArcMap extension?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90061#M2369</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2013-04-17T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing users from changing Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90062#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not aware of any ability to lock a layer internally to stop a user from editing the properties of a Layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 10:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90062#M2370</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-04-29T10:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing users from changing Definition Query</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90063#M2371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know that there is any way to prevent them from changing it but there is the IDefinitionExpressionEvents interface that has an event you can subscribe to that fires when the expression changes.&amp;nbsp; I imagine you could check the query and set it back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/preventing-users-from-changing-definition-query/m-p/90063#M2371</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-04-29T12:17:19Z</dc:date>
    </item>
  </channel>
</rss>

