The Labs \ Source Viewer \ SSCLI \ System.Configuration \ ConfigurationLocation

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ConfigurationLocation.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. namespace System.Configuration
  16. {
  17.     using System.Collections;
  18.     using System.Collections.Specialized;
  19.     using System.Configuration;
  20.     using System.Text;
  21.    
  22.     public class ConfigurationLocation
  23.     {
  24.         Configuration _config;
  25.         string _locationSubPath;
  26.        
  27.         internal ConfigurationLocation(Configuration config, string locationSubPath)
  28.         {
  29.             _config = config;
  30.             _locationSubPath = locationSubPath;
  31.         }
  32.        
  33.         public string Path {
  34.             get { return _locationSubPath; }
  35.         }
  36.        
  37.         public Configuration OpenConfiguration()
  38.         {
  39.             return _config.OpenLocationConfiguration(_locationSubPath);
  40.         }
  41.     }
  42. }

Developer Fusion