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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ProtectedProviderSettings.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.Xml;
  20.     using System.Globalization;
  21.    
  22.     public class ProtectedProviderSettings : ConfigurationElement
  23.     {
  24.         private ConfigurationPropertyCollection _properties;
  25.         private readonly ConfigurationProperty _propProviders = new ConfigurationProperty(null, typeof(ProviderSettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
  26.        
  27.         public ProtectedProviderSettings()
  28.         {
  29.             // Property initialization
  30.             _properties = new ConfigurationPropertyCollection();
  31.             _properties.Add(_propProviders);
  32.         }
  33.        
  34.         protected internal override ConfigurationPropertyCollection Properties {
  35.             get { return _properties; }
  36.         }
  37.        
  38.        
  39.         [ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
  40.         public ProviderSettingsCollection Providers {
  41.             get { return (ProviderSettingsCollection)base[_propProviders]; }
  42.         }
  43.     }
  44. }

Developer Fusion