title: How do I check if SqlCacheDependency is enabled at runtime?
body: <p>I am using SqlCacheDependency with polling in an ASP.NET project.</p>
  
  <p>Sometimes, I need to disable SqlCacheDependency, which I do as follows:</p>
  
  <pre><code>&lt;caching&gt;
    &lt;sqlCacheDependency enabled="false" pollTime="10000"&gt;
      &lt;databases&gt;
        &lt;!-- ... --&gt;
      &lt;/databases&gt;
    &lt;/sqlCacheDependency&gt;
  &lt;/caching&gt;
  </code></pre>
  
  <p>However, this causes an error in my code when I do a HttpRuntime.Cache.Insert() with the SQL dependency.</p>
  
  <p><em>To enable SQL cache dependency, please set the 'enabled' attribute to "true" in the  section in the configuration file.</em></p>
  
  <p>Is there a way I can programmatically check if this setting is enabled?</p>