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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ISettingsProviderService.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.     /// <devdoc>
  18.     /// The IPersistComponentSettings interface enables components hosted in an application to persist their
  19.     /// settings in a manner transparent to the application. However, in some cases, the application may want to
  20.     /// override the provider(s) specified by a component. For example, at design time, we may want to persist
  21.     /// settings differently. This service enables this scenario. The ApplicationSettingsBase class queries this
  22.     /// service from the owner component's site.
  23.     /// </devdoc>
  24.     public interface ISettingsProviderService
  25.     {
  26.        
  27.         /// <devdoc>
  28.         /// Queries the service whether it wants to override the provider for the given SettingsProperty. If it
  29.         /// doesn't want to, it should return null, in which the provider will remain unchanged.
  30.         /// </devdoc>
  31.         SettingsProvider GetSettingsProvider(SettingsProperty property);
  32.     }
  33. }

Developer Fusion