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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="Update.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.    
  18.     //
  19.     // Represents an update to a configuration section, either in its
  20.     // declaration or its definition.
  21.     //
  22.     internal abstract class Update
  23.     {
  24.         private bool _moved;
  25.         private bool _retrieved;
  26.         private string _configKey;
  27.         private string _updatedXml;
  28.        
  29.         internal Update(string configKey, bool moved, string updatedXml)
  30.         {
  31.             _configKey = configKey;
  32.             _moved = moved;
  33.             _updatedXml = updatedXml;
  34.         }
  35.        
  36.         internal string ConfigKey {
  37.             get { return _configKey; }
  38.         }
  39.        
  40.         internal bool Moved {
  41.             get { return _moved; }
  42.         }
  43.        
  44.         internal string UpdatedXml {
  45.             get { return _updatedXml; }
  46.         }
  47.        
  48.         internal bool Retrieved {
  49.             get { return _retrieved; }
  50.             set { _retrieved = value; }
  51.         }
  52.     }
  53. }

Developer Fusion