The Labs \ Source Viewer \ SSCLI \ System.Configuration.Internal \ IInternalConfigRecord

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IInternalConfigRecord.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System;
  16. using System.IO;
  17. using System.Security;
  18. using System.Collections.Specialized;
  19. using System.Configuration;
  20. using ClassConfiguration = System.Configuration.Configuration;
  21. //
  22. // This file contains most of the interfaces that allow System.Web, Venus, and
  23. // Whitehorse to customize configuration in some way.
  24. //
  25. // The goal of the design of customization is to only require other MS assemblies
  26. // to create an instance of an internal object via Activator.CreateInstance(), and then
  27. // use these objects through *public* System.Configuration.Internal interfaces.
  28. // We do not want extenders to have to use reflection to call a method - it is slow,
  29. // not typesafe, and more difficult to promote correct use of the internal object.
  30. //
  31. namespace System.Configuration.Internal
  32. {
  33.    
  34.     // Exposes the functionality of BaseConfigurationRecord.
  35.     [System.Runtime.InteropServices.ComVisible(false)]
  36.     public interface IInternalConfigRecord
  37.     {
  38.         string ConfigPath {
  39.             get;
  40.         }
  41.         string StreamName {
  42.             get;
  43.         }
  44.         bool HasInitErrors {
  45.             get;
  46.         }
  47.         void ThrowIfInitErrors();
  48.         object GetSection(string configKey);
  49.         object GetLkgSection(string configKey);
  50.         void RefreshSection(string configKey);
  51.         void Remove();
  52.     }
  53. }

Developer Fusion